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

rosserial custom message compilation problems

asked 2011-11-10 16:45:02 -0500

I have updated rosserial to 0.3.0, and as far as I can tell also updated everything else along with it. I have a custom message defined and now my rosserial_arduino sketch won't compile.

The compiler was complaining about my message being an abstract type so I added const to the end of the serialize function definition.

When I use to recompile the message it has an error about Header. I get "roslib.msgs.MsgSpecException: sensor_state.msg: Header header is not a legal message type"

I'd appreciate a pointer in the right direction please.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-11-11 12:11:10 -0500

SOLVED. My message definition file (.msg) had some Tab characters separating the type and the name. When I removed those the message compiled, and then my sketch would compile.

edit flag offensive delete link more

Question Tools


Asked: 2011-11-10 16:45:02 -0500

Seen: 1,743 times

Last updated: Nov 11 '11