PlotJuggler icon indicating copy to clipboard operation
PlotJuggler copied to clipboard

ROS topic cannot be loaded

Open lgulich opened this issue 3 years ago • 5 comments

Hi, first of all thank you for this great tool! It really is a game changer.

I am facing a problem when trying to load a custom message from a rosbag. After opening a rosbag and selecting the topic the following exception occurs:

The plugin [DataLoad ROS bags] thrown the following exception: Buffer overrun in RosIntrospection::ReadFromBuffer

I am using plotjuggler 3.1.2 with ros-melodic on ubuntu-18.04 The used rosbag is the following (only contains a single topic): 2021-06-14-09-48-08.zip

Any ideas how this can be solved?

lgulich avatar Jun 14 '21 07:06 lgulich

I will have a look.

facontidavide avatar Jun 14 '21 08:06 facontidavide

@facontidavide do you have any idea what this could be? I am also happy to try to fix this myself but I would be glad about some pointers in the right direction.

lgulich avatar Jul 05 '21 08:07 lgulich

I can see that there is something wrong in the message definition.

"# All readings of the Ascento robot. sensor_msgs/Imu imu_measurement encoder_tools_ros/MeasurementMe"

The definition of encoder_tools_ros is missing and PlotJuggler can't understand this message.

This is a known problem when rosbridge is used. Is this your case?

facontidavide avatar Jul 05 '21 10:07 facontidavide

Interesting, no we do not use rosbridge. I will investigate this wrong message definition, thanks!

lgulich avatar Jul 06 '21 13:07 lgulich

How did you extract the message definition from the bag? I just tried it with the script from here and got the correct message definition:

# All readings of the Ascento robot. sensor_msgs/Imu imu_measurement encoder_tools_ros/MeasurementMessage[2] hip_encoder_measurements rotary_actuator_ros/ReadingMessage[2] leg_readings rotary_actuator_ros/ReadingMessage[2] wheel_readings

lgulich avatar Jul 06 '21 15:07 lgulich