Header implementation into messages from tutorial

asked 2017-03-06 12:03:46 -0500

nMMros gravatar image

Hey Beginner here,

just made my way through the easy Tutorials for ROS. Wanted to use "rostopic delay" between the node "talker" and "listener" but I'm getting the error that there is no timestamp. I think the solution would be to implement the header into my messages but I failed several times. Can somebody help me with my problem?

Made the C++ Publisher and Subscriber with Messages Tutorial and put the line "Header header" in the first line into the Num.msg but it didn't work and I didn't find a way to make the headers correct.

edit retag flag offensive close merge delete

Comments

1

Did you run catkin_make after editing your Num.msg file (you need to)? Were there any errors?

jarvisschultz gravatar image jarvisschultz  ( 2017-03-06 12:27:15 -0500 )edit

I used 'catkin_make' without any errors. Started 'roscore' then the two nodes "talker" and "listener" everything works. But when trying to check the delay with ‘rostopic delay /chatter‘, my console just reports the error "msg does not have header".

nMMros gravatar image nMMros  ( 2017-03-09 08:05:49 -0500 )edit