Publish a complex msg on a topic
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.