[ROS Q&A] 067 – Subscribe custom message attributes

Written by Marco Arruda

27/11/2017

Q: Hello! I want to subscribe data from .msg file. However the file has four other msgs inside. The format of the .msg file is:

Could you tell me how to read, for example, x,y,z coordinates inside geometry_msgs/Vector3?

A: I’ve created a custom msg (msg/mycustom.msg) in my package called mypkg, created a publisher and 2 subscribers, one in python, another in cpp. You can see below:

Topics:
Masterclass 2023 batch2 blog banner

Check Out These Related Posts

129. ros2ai

129. ros2ai

I would like to dedicate this episode to all the ROS Developers who believe that ChatGPT or...

read more

0 Comments

Submit a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest

Share This