14 #ifndef TANGO_ROS_CONVERSIONS_HELPER_H_ 15 #define TANGO_ROS_CONVERSIONS_HELPER_H_ 20 #include <geometry_msgs/TransformStamped.h> 21 #include <nav_msgs/OccupancyGrid.h> 22 #include <sensor_msgs/CameraInfo.h> 23 #include <sensor_msgs/LaserScan.h> 24 #include <sensor_msgs/PointCloud2.h> 25 #include <sensor_msgs/PointField.h> 27 #include <visualization_msgs/MarkerArray.h> 42 const std::string& base_frame_id,
43 const std::string& target_frame_id,
44 geometry_msgs::TransformStamped* transform);
53 sensor_msgs::PointCloud2* point_cloud);
67 double max_height,
double min_range,
double max_range,
68 sensor_msgs::LaserScan* laser_scan);
88 sensor_msgs::LaserScan* laser_scan);
103 sensor_msgs::CameraInfo* camera_info);
125 double time_offset,
const std::string& base_frame_id,
126 visualization_msgs::Marker* mesh_marker);
142 const std::string& base_frame_id,
double resolution,
143 uint8_t threshold, nav_msgs::OccupancyGrid* occupancy_grid);
155 #endif // TANGO_ROS_CONVERSIONS_HELPER_H_
void toPointCloud2(const TangoPointCloud &tango_point_cloud, double time_offset, sensor_msgs::PointCloud2 *point_cloud)
void toTango3DR_Pose(const TangoPoseData &tango_pose_data, Tango3DR_Pose *t3dr_pose)
void toLaserScan(const TangoPointCloud &tango_point_cloud, double time_offset, double min_height, double max_height, double min_range, double max_range, const tf::Transform &point_cloud_T_laser, sensor_msgs::LaserScan *laser_scan)
const int NUMBER_OF_FIELDS_IN_POINT_CLOUD
constexpr int8_t OCCUPIED_CELL
float Tango3DR_Vector2[2]
void toColor(const Tango3DR_Color &tango_color, std_msgs::ColorRGBA *color)
void toTransformStamped(const TangoPoseData &pose, double time_offset, const std::string &base_frame_id, const std::string &target_frame_id, geometry_msgs::TransformStamped *transform)
std::string toFrameId(const TangoCoordinateFrameType &tango_frame_type)
void toCameraInfo(const TangoCameraIntrinsics &camera_intrinsics, sensor_msgs::CameraInfo *camera_info)
void toTango3DR_CameraCalibration(const TangoCameraIntrinsics &camera_intrinsics, Tango3DR_CameraCalibration *t3dr_camera_intrinsics)
void toLaserScanRange(double x, double y, double z, double min_height, double max_height, double min_range, double max_range, sensor_msgs::LaserScan *laser_scan)
float Tango3DR_Vector3[3]
void toPoint(const Tango3DR_Vector3 &tango_vector, geometry_msgs::Point *point)
void toOccupancyGrid(const Tango3DR_ImageBuffer &image_grid, const Tango3DR_Vector2 &origin, double time_offset, const std::string &base_frame_id, double resolution, uint8_t threshold, nav_msgs::OccupancyGrid *occupancy_grid)
world coordinates (x: right, y: up).
void toMeshMarker(const Tango3DR_GridIndex &grid_index, const Tango3DR_Mesh &tango_mesh, double time_offset, const std::string &base_frame_id, visualization_msgs::Marker *mesh_marker)
constexpr int8_t UNKNOWN_CELL
int Tango3DR_GridIndex[3]
constexpr int8_t FREE_CELL
uint8_t Tango3DR_Color[4]