Function mrpt::ros2bridge::toROS(const mrpt::obs::CObservationRange&, const std_msgs::msg::Header&, sensor_msgs::msg::Range *)
Defined in File range.h
Function Documentation
-
bool mrpt::ros2bridge::toROS(const mrpt::obs::CObservationRange &obj, const std_msgs::msg::Header &msg_header, sensor_msgs::msg::Range *msg)
Convert mrpt::obs::CObservationRange -> sensor_msgs/Range The user must supply the “msg_header” field to be copied into the output message object, since that part does not appear in MRPT classes.
Since COnservation does not contain “radiation_type”, sensor_msgs::msg::Range::radiation_type will be empty.
- Returns:
true on successful conversion, false on any error.