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

Publish a complex msg on a topic

$
0
0
Hey, I read the topic on publishing for python scipt but now I would like to published complex msg like : People.msg Inside Int Age String FName String LName I don't know what I am supposed to write in the python script to publish data ob the different part of the message ? Something like : pub_People = rospy.Publisher('people', People); And the I change the value of the `people.age` before publishing ? People.age =10 pub_People .publish(people.age) Thank you for your help.

Viewing all articles
Browse latest Browse all 84

Trending Articles



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