Ask Your Question
0

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 make_library.py 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
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 1,317 times

Last updated: Nov 11 '11