ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The message means that the Rosjava publisher is trying to publish a message to a topic on which the C++ listener already listens, but the publisher's message type doesn't match the subscriber's message type. This can have two reasons:
Publisher and subscriber use different message types (e.g., one uses std_msgs/String
and the other std_msgs/Int8
).
Both use the same message type, but were built with different versions of it.
To debug (1), you can do the following:
rosnode info
on the subscriberTo debug (2), you can
ROS_PACKAGE_PATH
and ROS_ROOT
are set up correctlyI don't have any experience with the newest rosjava build system using gradle, but before the switch to gradle, it usually also helped to do the following, then rebuild the rosjava nodes:
rm -rf ~/.m2/ ~/.ros/rosjava/
(cd $(rosstack find rosjava_core) && hg clean --all)