Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 84

[ROS2] msg headers

$
0
0
Hi, In ROS, I could import other messages using headers. Header header int32 cout int32 nch int32 lenght This way I could include std_msg's **stamp** and **frame_id**. Other wise, I have to add them manually but I am not sure if this is ideal or not. unit32 seq builtin_interfaces/Time stamp string frame_id int32 count int32 nch int32 lenght I tried using std_msgs/Header header but I received error message. > Message interface 'std_msgs/Header' > contains an unknown field type: > std_msgs/Header header I added `find_package(std_msgs REQUIRED)` to my CMakelist, I am not sure if I am missing anything else I looked at how other ROS2 msg's used the messages I wanted to use but it seems they are doing it manually as well [link text](https://github.com/ros2/demos/blob/master/pendulum_msgs/msg/RttestResults.msg). I was wondering if it would be okay for me to do this too(writing it manually).

Viewing all articles
Browse latest Browse all 84

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>