You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
793 B
C++
38 lines
793 B
C++
/*
|
|
* scanGrid implementation
|
|
*
|
|
* Copyright (C) Uwe Hebbelmann, Sebastian Stock, Andre Schemschat
|
|
*
|
|
* Released under the GPL version 3.
|
|
*
|
|
*/
|
|
|
|
#include "grid/scanGrid.h"
|
|
|
|
/**
|
|
* CTor.
|
|
* Calls CTor of grid and sets viewpointx and viewpointz
|
|
*
|
|
* @param offsetX the x offset of the robot
|
|
* @param offsetZ the z offset of the robot
|
|
* @param viewpointX the x-position of the robot
|
|
* @param viewpointZ the z-position of the robot
|
|
* @param sizeX the x size of the grid
|
|
* @param sizeZ the z size of the grid
|
|
*/
|
|
scanGrid::scanGrid(long viewpointX, long viewpointZ,
|
|
long offsetX, long offsetZ,
|
|
long sizeX, long sizeZ)
|
|
: grid(offsetX, offsetZ, sizeX, sizeZ)
|
|
{
|
|
this->viewpointX = viewpointX;
|
|
this->viewpointZ = viewpointZ;
|
|
}
|
|
|
|
/**
|
|
* DTor.
|
|
*/
|
|
scanGrid::~scanGrid()
|
|
{
|
|
}
|