change topic and msg depth camera
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <robot_nav_msgs/OccupancyGrid.h>
|
||||
#include <robot_sensor_msgs/LaserScan.h>
|
||||
#include <robot_laser_geometry/laser_geometry.hpp>
|
||||
#include <robot_sensor_msgs/Image.h>
|
||||
#include <robot_sensor_msgs/PointCloud.h>
|
||||
#include <robot_sensor_msgs/PointCloud2.h>
|
||||
#include <robot_sensor_msgs/point_cloud_conversion.h>
|
||||
@@ -58,7 +59,11 @@ class VoxelLayer : public ObstacleLayer
|
||||
{
|
||||
public:
|
||||
VoxelLayer() :
|
||||
robot_voxel_grid_(0, 0, 0)
|
||||
robot_voxel_grid_(0, 0, 0),
|
||||
frustum_clearing_enabled_(false),
|
||||
frustum_clearing_pixel_step_(8),
|
||||
frustum_min_range_(0.2),
|
||||
frustum_max_range_(3.0)
|
||||
{
|
||||
costmap_ = NULL; // this is the unsigned char* member of parent class's parent class Costmap2D.
|
||||
}
|
||||
@@ -91,10 +96,9 @@ private:
|
||||
void clearNonLethal(double wx, double wy, double w_size_x, double w_size_y, bool clear_no_info);
|
||||
virtual void raytraceFreespace(const robot_costmap_2d::Observation& clearing_observation, double* min_x, double* min_y,
|
||||
double* max_x, double* max_y);
|
||||
bool raytraceDepthFrustum(const robot_costmap_2d::Observation& clearing_observation, double* min_x, double* min_y,
|
||||
double* max_x, double* max_y);
|
||||
bool getCloudPoint(const robot_sensor_msgs::PointCloud2& cloud, unsigned int u, unsigned int v,
|
||||
double& wx, double& wy, double& wz) const;
|
||||
bool raytraceDepthFrustum(double* min_x, double* min_y, double* max_x, double* max_y);
|
||||
bool readDepthMeters(const robot_sensor_msgs::Image& depth, unsigned int u, unsigned int v,
|
||||
double& depth_m, bool& is_valid) const;
|
||||
bool clipRaytraceEndpoint(double ox, double oy, double oz, double& wx, double& wy, double& wz);
|
||||
bool clearVoxelRay(double ox, double oy, double oz, double wx, double wy, double wz,
|
||||
double raytrace_range, double* min_x, double* min_y, double* max_x, double* max_y);
|
||||
@@ -106,6 +110,9 @@ private:
|
||||
unsigned int unknown_threshold_, mark_threshold_, size_z_;
|
||||
bool frustum_clearing_enabled_;
|
||||
unsigned int frustum_clearing_pixel_step_;
|
||||
double frustum_min_range_;
|
||||
double frustum_max_range_;
|
||||
std::string frustum_depth_camera_topic_;
|
||||
robot_sensor_msgs::PointCloud clearing_endpoints_;
|
||||
|
||||
inline bool worldToMap3DFloat(double wx, double wy, double wz, double& mx, double& my, double& mz)
|
||||
|
||||
Reference in New Issue
Block a user