lcm_to_ros
lcm_to_ros copied to clipboard
Trouble decoding lcm message
Hi!
I followed the README using my custom message type mbot_encoder_t
package mbot_lcm_msgs;
struct mbot_encoder_t
{
int64_t utime;
int64_t leftticks;
int64_t rightticks;
int16_t left_delta;
int16_t right_delta;
}
rosmsg-gen.sh
, rosrepub-gen.sh
and catkin build
complete without error, but when I run roslaunch lcm_to_ros mbot_republishers.launch
this error message is printing error -1 decoding mbot_encoder_t!!!
Before any messages are even published to LCM? What is it attempting to decode?
FWIW my config looks like so:
# LCM to ROS republisher with normal hash
MBOT_ENCODERS, mbot_lcm_msgs, mbot_encoder_t, lcm2ros
Any help is much appreciated!
Hello, I'm not 100% sure, but maybe could you also look at the generated messages after rosmsg-gen
, do they look OK? And/or you could post them here to check. Then, I will try building yours locally and see if I get an issue.
OK, I may have an answer. There is a mistake (which I will fix) where the message header doesn't get created if the directory for the message package name doesn't already exist. So in your case, could you try creating an mbot_lcm_msgs
directory in the lcm_to_ros
directory, then running rosmsg-gen
again, check that a mbot_lcm_msgs\mbot_encoder_t.hpp
file appears in and see if that helps? Then I will fix the error properly