Closed ruffsl closed 4 years ago
@ruffsl Thanks for reporting the issue. I've pushed a fix to the foxy-devel
branch. I will make a new release soon as well.
For now you will need to build from source to be able to use in Foxy.
[ERROR] [1600309473.351128336] [lgsvl-bridge]: Cannot load liblgsvl_msgs__rosidl_typesupport_c.so library
This message will still appear if the message definitions are not available (in this case for lgsvl_msgs
).
This message will still appear if the message definitions are not available (in this case for
lgsvl_msgs
).
See suggestion in https://github.com/lgsvl/ros2-lgsvl-bridge/pull/3 to help users avoid such errors.
@ruffsl Could you tell me how to solve this issue? I have the same issue. The lgsvl simulator version is the lattest 21.3
I haven't revisited this in a while, but make sure you've installed the necessary message type package, and that's it's being properly found/linked to at build time.
@ruffsl Thanks for your kind advice. I am trying to make ros2 to receive sensor messages from the lgsvl simulator. I installed the lgsvl-msgs package by the following cmd. And it showed a successful build. Except for lgsvl-msgs, do I need to install other message packages?
cd ~/ros2_bashing/src
git clone https://github.com/lgsvl/lgsvl_msgs.git
cd lgsvl_msgs
colcon build
source install/setup.bash
Build Result
Starting >>> lgsvl_msgs
Finished <<< lgsvl_msgs [0.62s]
Summary: 1 package finished [0.75s]
By the way, when I run ros2 and lgsvl simulator, the following errors occured.
[[INFO] [lgsvl-bridge]: Loaded type support for sensor_msgs/CompressedImage type
[INFO] [lgsvl-bridge]: Publishing sensor_msgs/CompressedImage on /simulator/sensor/camera/center/image/compressed
[ERROR] [lgsvl-bridge]: Cannot load liblgsvl_msgs__rosidl_typesupport_c.so library
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/ground_truth/m3d_detections, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/canbus, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/ground_truth/signals, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/ground_truth/m3d_detections, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/canbus, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/ground_truth/signals, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/ground_truth/m3d_detections, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/canbus, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/ground_truth/signals, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/ground_truth/m3d_detections, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/canbus, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/ground_truth/signals, ignorning message
[ERROR] [lgsvl-bridge]: No publisher registered on topic /simulator/ground_truth/m3d_detections, ignorning message
It seems that the bridge fails to load the rosidl typesupport library for the relevant message types published from the lgsvl simulator, perhaps preventing the registration of publishers for topics it should be rebroadcasting. E.g:
This can be reproduced by running lgsvl (2020.06) simulator with any vehicle configured to use the
ROS2
Bridge Type
, and thelgsvl_bridge
node built from the Dockerfile added in https://github.com/lgsvl/ros2-lgsvl-bridge/pull/1 .See the included stdout and stacktrace for more info:
ROS2 Stats
Example docker run
Stack trace