ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ros2 header for magneticfield message

asked 2022-07-13 10:13:02 -0500

kyubot gravatar image

I am trying to convert a ros package to ros2.

This package includes imu and magnetic field message which was used to be included as "sensor_msgs/Imu.h" and "sensor_msgs/MagneticField.h".

I was able to change Imu.h to "sensor_msgs/msg/imu.hpp" however I could not find anything about the MagneticField.h What is correct path to include MagneticField.h in ros2?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-13 10:28:22 -0500

kyubot gravatar image

I found the exact path for MagneticField.msg !

It is actually as include "sensor_msgs/msg/magnetic_field.hpp"

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-07-13 10:13:02 -0500

Seen: 163 times

Last updated: Jul 13 '22