Function mrpt::ros2bridge::toROS(const mrpt::obs::CObservationIMU&, const std_msgs::msg::Header&, sensor_msgs::msg::Imu&)
Defined in File imu.h
Function Documentation
-
bool mrpt::ros2bridge::toROS(const mrpt::obs::CObservationIMU &obj, const std_msgs::msg::Header &msg_header, sensor_msgs::msg::Imu &msg)
Convert mrpt::obs::CObservationIMU -> sensor_msgs/Imu 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 CObservationIMU does not contain covariance terms NEED TO fix those.
- Returns:
true on successfull conversion, false on any error.