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

[ROS2] Example to publish custom message [closed]

asked 2019-06-24 12:41:02 -0500

ahtsan gravatar image

Is there an example project for publishing a custom message in ROS2?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by ahtsan
close date 2019-07-11 18:38:53.197174

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-06-24 12:53:39 -0500

sloretz gravatar image

There is an example message package pendulum_msgs which is used by pendulum_control. It does publish the custom messages.

I found them from this stub tutorial. That example shows having messages in a dedicated package (which is considered good practice). I don't know of an example where messages are both generated and used in the same package.

edit flag offensive delete link more

Comments

Thanks for the pointer!

ahtsan gravatar image ahtsan  ( 2019-06-24 12:57:01 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2019-06-24 12:41:02 -0500

Seen: 550 times

Last updated: Jun 24 '19