Go to the documentation of this file.
7 int main(
int ,
char** ) {
8 const float resolution = 0.2f;
12 const float bbx_limit = 10.1f;
13 point3d bbx_min(-bbx_limit, -bbx_limit, -bbx_limit);
14 point3d bbx_max(bbx_limit, bbx_limit, bbx_limit);
22 const point3d origin(resolution / 2.f, 5.f + resolution / 2.f, resolution / 2.f);
23 const float maxrange = 8.f;
40 bool ray_cast_ret = tree.
castRay(origin,
point3d(1.f, 0.f, 0.f), end_point);
42 const float eps = 1e-3;
49 ray_cast_ret = tree.
castRay(origin,
point3d(0.f, 1.f, 0.f), end_point);
56 ray_cast_ret = tree.
castRay(origin,
point3d(0.f, 0.f, 1.f), end_point);
virtual bool castRay(const point3d &origin, const point3d &direction, point3d &end, bool ignoreUnknownCells=false, double maxRange=-1.0) const
void setOccupancyThres(double prob)
sets the threshold for occupancy (sensor model)
void push_back(float x, float y, float z)
#define EXPECT_TRUE(args)
This class represents a three-dimensional vector.
#define EXPECT_NEAR(a, b, prec)
void setBBXMax(const point3d &max)
sets the maximum for a query bounding box to use
void setBBXMin(const point3d &min)
sets the minimum for a query bounding box to use
void useBBXLimit(bool enable)
use or ignore BBX limit (default: ignore)
octomath::Vector3 point3d
Use Vector3 (float precision) as a point3d in octomap.
#define EXPECT_FALSE(args)
virtual void insertPointCloud(const Pointcloud &scan, const octomap::point3d &sensor_origin, double maxrange=-1., bool lazy_eval=false, bool discretize=false)
octomap
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Tue Dec 12 2023 03:39:40