lgsvl / ros2-lgsvl-bridge

BSD 3-Clause "New" or "Revised" License
12 stars 14 forks source link

Cannot load rosidl typesupport library for message types #2

Closed ruffsl closed 4 years ago

ruffsl commented 4 years ago

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:

...
[ERROR] [1600309473.351128336] [lgsvl-bridge]: Cannot load liblgsvl_msgs__rosidl_typesupport_c.so library
...
[ERROR] [1600309473.381617959] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message
...

This can be reproduced by running lgsvl (2020.06) simulator with any vehicle configured to use the ROS2 Bridge Type, and the lgsvl_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

``` $ ros2 node info /lgsvl/bridge /lgsvl/bridge Subscribers: Publishers: Service Servers: Service Clients: Action Servers: Action Clients: ``` ``` $ ros2 topic list /parameter_events /rosout ```

Example docker run

``` $ docker run -it --rm --net=host lgsvl/ros2-lgsvl-bridge:foxy lgsvl_bridge --log D [DEBUG] [1600308697.786658410] [rcl]: Initializing ROS client library, for context at address: 0x7ffcd9bf4410 [DEBUG] [1600308697.786749223] [rcl]: Using security: false [DEBUG] [1600308697.786820062] [rcl]: Initializing node 'bridge' in namespace 'lgsvl' [DEBUG] [1600308697.786842199] [rcl]: Using domain ID of '0' [DEBUG] [1600308697.792886293] [rcl]: Node initialized [INFO] [1600308697.793045469] [lgsvl-bridge]: Listening on port 9090 [INFO] [1600308697.875416744] [lgsvl-bridge]: Client [127.0.0.1:58428] connected [DEBUG] [1600308697.875616172] [lgsvl-bridge]: Received 49 bytes [DEBUG] [1600308697.875627492] [lgsvl-bridge]: OP_ADD_PUBLISHER, topic = /lgsvl/state_report, type = lgsvl_msgs/CanBusData [DEBUG] [1600308697.875636734] [lgsvl-bridge]: Searching for lgsvl_msgs/CanBusData type [DEBUG] [1600308697.875646032] [lgsvl-bridge]: Loading liblgsvl_msgs__rosidl_typesupport_c.so library [ERROR] [1600308697.876180730] [lgsvl-bridge]: Cannot load liblgsvl_msgs__rosidl_typesupport_c.so library [DEBUG] [1600308697.876200254] [lgsvl-bridge]: Received 124 bytes [DEBUG] [1600308697.876213021] [lgsvl-bridge]: OP_ADD_SUBSCRIBER, topic = /lgsvl/vehicle_control_cmd, type = lgsvl_msgs/VehicleControlData [DEBUG] [1600308697.876223203] [lgsvl-bridge]: Searching for lgsvl_msgs/VehicleControlData type [DEBUG] [1600308697.876233360] [lgsvl-bridge]: Loading liblgsvl_msgs__rosidl_typesupport_c.so library [ERROR] [1600308697.876331457] [lgsvl-bridge]: Cannot load liblgsvl_msgs__rosidl_typesupport_c.so library [DEBUG] [1600308697.876349338] [lgsvl-bridge]: OP_ADD_SUBSCRIBER, topic = /lgsvl/vehicle_state_cmd, type = lgsvl_msgs/VehicleStateData [DEBUG] [1600308697.876358815] [lgsvl-bridge]: Searching for lgsvl_msgs/VehicleStateData type [DEBUG] [1600308697.876365147] [lgsvl-bridge]: Loading liblgsvl_msgs__rosidl_typesupport_c.so library [ERROR] [1600308697.876446789] [lgsvl-bridge]: Cannot load liblgsvl_msgs__rosidl_typesupport_c.so library [DEBUG] [1600308697.876463287] [lgsvl-bridge]: Received 40 bytes [DEBUG] [1600308697.876470952] [lgsvl-bridge]: OP_ADD_PUBLISHER, topic = /lgsvl/clock, type = rosgraph_msgs/Clock [DEBUG] [1600308697.876478194] [lgsvl-bridge]: Searching for rosgraph_msgs/Clock type [DEBUG] [1600308697.876485527] [lgsvl-bridge]: Loading librosgraph_msgs__rosidl_typesupport_c.so library [DEBUG] [1600308697.876620663] [lgsvl-bridge]: Loading librosgraph_msgs__rosidl_typesupport_introspection_c.so library [DEBUG] [1600308697.876973503] [lgsvl-bridge]: Loading librosgraph_msgs__rosidl_runtime_c.so library [ERROR] [1600308697.877086556] [lgsvl-bridge]: Cannot load librosgraph_msgs__rosidl_runtime_c.so library [DEBUG] [1600308697.877104398] [lgsvl-bridge]: Received 81 bytes [DEBUG] [1600308697.877111212] [lgsvl-bridge]: OP_ADD_PUBLISHER, topic = /gnss/fix, type = sensor_msgs/NavSatFix [DEBUG] [1600308697.877120923] [lgsvl-bridge]: Searching for sensor_msgs/NavSatFix type [DEBUG] [1600308697.877129863] [lgsvl-bridge]: Loading libsensor_msgs__rosidl_typesupport_c.so library [DEBUG] [1600308697.877241346] [lgsvl-bridge]: Loading libsensor_msgs__rosidl_typesupport_introspection_c.so library [DEBUG] [1600308697.877887527] [lgsvl-bridge]: Loading libsensor_msgs__rosidl_runtime_c.so library [ERROR] [1600308697.878016319] [lgsvl-bridge]: Cannot load libsensor_msgs__rosidl_runtime_c.so library [DEBUG] [1600308697.878028380] [lgsvl-bridge]: OP_ADD_PUBLISHER, topic = /lgsvl/gnss_odom, type = nav_msgs/Odometry [DEBUG] [1600308697.878039197] [lgsvl-bridge]: Searching for nav_msgs/Odometry type [DEBUG] [1600308697.878048856] [lgsvl-bridge]: Loading libnav_msgs__rosidl_typesupport_c.so library [DEBUG] [1600308697.878154889] [lgsvl-bridge]: Loading libnav_msgs__rosidl_typesupport_introspection_c.so library [DEBUG] [1600308697.878371578] [lgsvl-bridge]: Loading libnav_msgs__rosidl_runtime_c.so library [ERROR] [1600308697.878486650] [lgsvl-bridge]: Cannot load libnav_msgs__rosidl_runtime_c.so library [DEBUG] [1600308697.878503905] [lgsvl-bridge]: Received 145 bytes [DEBUG] [1600308697.878512268] [lgsvl-bridge]: OP_ADD_PUBLISHER, topic = /imu/imu_raw, type = sensor_msgs/Imu [DEBUG] [1600308697.878520318] [lgsvl-bridge]: Searching for sensor_msgs/Imu type [DEBUG] [1600308697.878530652] [lgsvl-bridge]: Loading libsensor_msgs__rosidl_runtime_c.so library [ERROR] [1600308697.878614105] [lgsvl-bridge]: Cannot load libsensor_msgs__rosidl_runtime_c.so library [DEBUG] [1600308697.878623848] [lgsvl-bridge]: OP_ADD_PUBLISHER, topic = /lidar_front/points_raw, type = sensor_msgs/PointCloud2 [DEBUG] [1600308697.878633431] [lgsvl-bridge]: Searching for sensor_msgs/PointCloud2 type [DEBUG] [1600308697.878642999] [lgsvl-bridge]: Loading libsensor_msgs__rosidl_runtime_c.so library [ERROR] [1600308697.878726190] [lgsvl-bridge]: Cannot load libsensor_msgs__rosidl_runtime_c.so library [DEBUG] [1600308697.878734642] [lgsvl-bridge]: OP_ADD_PUBLISHER, topic = /lidar_rear/points_raw, type = sensor_msgs/PointCloud2 [DEBUG] [1600308697.878740238] [lgsvl-bridge]: Searching for sensor_msgs/PointCloud2 type [DEBUG] [1600308697.878747788] [lgsvl-bridge]: Loading libsensor_msgs__rosidl_runtime_c.so library [ERROR] [1600308697.878828006] [lgsvl-bridge]: Cannot load libsensor_msgs__rosidl_runtime_c.so library [DEBUG] [1600308697.886869129] [lgsvl-bridge]: Received 32768 bytes [DEBUG] [1600308697.886951818] [lgsvl-bridge]: Received 32768 bytes [DEBUG] [1600308697.887040206] [lgsvl-bridge]: Received 106405 bytes [DEBUG] [1600308697.887231255] [lgsvl-bridge]: OP_PUBLISH, topic = /lidar_rear/points_raw [ERROR] [1600308697.887243187] [lgsvl-bridge]: No publisher registered on topic /lidar_rear/points_raw, ignorning message [DEBUG] [1600308697.902750559] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308697.902787813] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308697.902809443] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308697.902861131] [lgsvl-bridge]: Received 138 bytes [DEBUG] [1600308697.902874124] [lgsvl-bridge]: OP_PUBLISH, topic = /gnss/fix [ERROR] [1600308697.902883967] [lgsvl-bridge]: No publisher registered on topic /gnss/fix, ignorning message [DEBUG] [1600308697.903016269] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308697.903027982] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308697.903038012] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308697.903164078] [lgsvl-bridge]: Received 742 bytes [DEBUG] [1600308697.903194265] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/gnss_odom [ERROR] [1600308697.903210386] [lgsvl-bridge]: No publisher registered on topic /lgsvl/gnss_odom, ignorning message [DEBUG] [1600308697.912728317] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308697.912766509] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308697.912784045] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308697.912843036] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308697.912860436] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308697.912874656] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308697.922679310] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308697.922704648] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308697.922718226] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308697.922798341] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308697.922813335] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308697.922826515] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308697.936046773] [lgsvl-bridge]: Received 742 bytes [DEBUG] [1600308697.936080021] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/gnss_odom [ERROR] [1600308697.936100216] [lgsvl-bridge]: No publisher registered on topic /lgsvl/gnss_odom, ignorning message [DEBUG] [1600308697.942985316] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308697.943025607] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308697.943043507] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308697.943167778] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308697.943196339] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308697.943213706] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308697.952976304] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308697.953003103] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308697.953011683] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308697.953140765] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308697.953182202] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308697.953202152] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308697.953591642] [lgsvl-bridge]: Received 65483 bytes [DEBUG] [1600308697.953641303] [lgsvl-bridge]: Received 105116 bytes [DEBUG] [1600308697.953735887] [lgsvl-bridge]: OP_PUBLISH, topic = /lidar_front/points_raw [ERROR] [1600308697.953744148] [lgsvl-bridge]: No publisher registered on topic /lidar_front/points_raw, ignorning message [DEBUG] [1600308697.962931900] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308697.962947535] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308697.962955605] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308697.963085420] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308697.963110960] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308697.963123834] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308697.963684791] [lgsvl-bridge]: Received 65483 bytes [DEBUG] [1600308697.963740379] [lgsvl-bridge]: Received 65483 bytes [DEBUG] [1600308697.963774202] [lgsvl-bridge]: Received 40943 bytes [DEBUG] [1600308697.963816722] [lgsvl-bridge]: OP_PUBLISH, topic = /lidar_rear/points_raw [ERROR] [1600308697.963832331] [lgsvl-bridge]: No publisher registered on topic /lidar_rear/points_raw, ignorning message [DEBUG] [1600308697.969357726] [lgsvl-bridge]: Received 742 bytes [DEBUG] [1600308697.969382015] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/gnss_odom [ERROR] [1600308697.969393272] [lgsvl-bridge]: No publisher registered on topic /lgsvl/gnss_odom, ignorning message [DEBUG] [1600308697.972931127] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308697.972958370] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308697.972972444] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308697.973061662] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308697.973081648] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308697.973094777] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308697.982741815] [lgsvl-bridge]: Received 138 bytes [DEBUG] [1600308697.982782358] [lgsvl-bridge]: OP_PUBLISH, topic = /gnss/fix [ERROR] [1600308697.982795201] [lgsvl-bridge]: No publisher registered on topic /gnss/fix, ignorning message [DEBUG] [1600308697.982939042] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308697.982964810] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308697.982979359] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308697.983147810] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308697.983167930] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308697.983177871] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308697.989614904] [lgsvl-bridge]: Received 151 bytes [DEBUG] [1600308697.989638879] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/state_report [ERROR] [1600308697.989649382] [lgsvl-bridge]: No publisher registered on topic /lgsvl/state_report, ignorning message [DEBUG] [1600308697.992926968] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308697.992957673] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308697.992972977] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308697.993129508] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308697.993150933] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308697.993165163] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308698.002725161] [lgsvl-bridge]: Received 742 bytes [DEBUG] [1600308698.002753636] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/gnss_odom [ERROR] [1600308698.002764690] [lgsvl-bridge]: No publisher registered on topic /lgsvl/gnss_odom, ignorning message [DEBUG] [1600308698.002916402] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308698.002934145] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308698.002941401] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308698.003046903] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308698.003059199] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308698.003067761] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308698.012949890] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308698.012977235] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308698.012994131] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308698.013071617] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308698.013083825] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308698.013092150] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308698.022995052] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308698.023029463] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308698.023040653] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308698.023151214] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308698.023170948] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308698.023179805] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308698.033005922] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308698.033038272] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308698.033050434] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308698.033192006] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308698.033207445] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308698.033221079] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308698.036063790] [lgsvl-bridge]: Received 742 bytes [DEBUG] [1600308698.036087547] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/gnss_odom [ERROR] [1600308698.036099375] [lgsvl-bridge]: No publisher registered on topic /lgsvl/gnss_odom, ignorning message [DEBUG] [1600308698.042953007] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308698.042984213] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308698.043001423] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308698.043045948] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308698.043071017] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308698.043089550] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308698.052967574] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308698.052996043] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308698.053009353] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308698.053234029] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308698.053252032] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308698.053262780] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308698.062704219] [lgsvl-bridge]: Received 138 bytes [DEBUG] [1600308698.062726479] [lgsvl-bridge]: OP_PUBLISH, topic = /gnss/fix [ERROR] [1600308698.062735739] [lgsvl-bridge]: No publisher registered on topic /gnss/fix, ignorning message [DEBUG] [1600308698.068119158] [lgsvl-bridge]: Received 29 bytes [DEBUG] [1600308698.068150712] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/clock [ERROR] [1600308698.068161700] [lgsvl-bridge]: No publisher registered on topic /lgsvl/clock, ignorning message [DEBUG] [1600308698.068251016] [lgsvl-bridge]: Received 344 bytes [DEBUG] [1600308698.068265327] [lgsvl-bridge]: OP_PUBLISH, topic = /imu/imu_raw [ERROR] [1600308698.068273939] [lgsvl-bridge]: No publisher registered on topic /imu/imu_raw, ignorning message [DEBUG] [1600308698.069337607] [lgsvl-bridge]: Received 742 bytes [DEBUG] [1600308698.069361073] [lgsvl-bridge]: OP_PUBLISH, topic = /lgsvl/gnss_odom [ERROR] [1600308698.069372135] [lgsvl-bridge]: No publisher registered on topic /lgsvl/gnss_odom, ignorning message ^C[INFO] [1600308698.071360448] [lgsvl-bridge]: Signal 2 received, stopping server [DEBUG] [1600308698.093163886] [rcl]: Finalizing node [DEBUG] [1600308698.094204614] [rcl]: Node finalized ```

Stack trace

``` Node::publish node.cc:309 Client::handle_publish client.cc:236 Client::handle_read client.cc:75 boost::_mfi::mf2::call, boost::system::error_code const, unsigned long> mem_fn_template.hpp:271 boost::_mfi::mf2::operator() > mem_fn_template.hpp:286 boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()>::operator(), boost::_bi::rrlist2 > bind.hpp:398 boost::_bi::bind_t, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >::operator() bind.hpp:1318 boost::asio::detail::binder2, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>::operator() bind_handler.hpp:164 boost::asio::asio_handler_invoke, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long> > handler_invoke_hook.hpp:69 boost_asio_handler_invoke_helpers::invoke, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>, boost::_bi::bind_t, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> > > handler_invoke_helpers.hpp:37 boost::asio::detail::asio_handler_invoke, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>, boost::_bi::bind_t, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long> bind_handler.hpp:207 boost_asio_handler_invoke_helpers::invoke, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>, boost::asio::detail::binder2, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long> > handler_invoke_helpers.hpp:37 boost::asio::detail::io_object_executor::dispatch, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>, std::allocator > io_object_executor.hpp:119 boost::asio::detail::handler_work, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::io_object_executor, boost::asio::detail::io_object_executor >::complete, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long> > handler_work.hpp:72 boost::asio::detail::reactive_socket_recv_op, boost::_bi::list3 >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::io_object_executor >::do_complete reactive_socket_recv_op.hpp:123 boost::asio::detail::scheduler_operation::complete scheduler_operation.hpp:40 boost::asio::detail::scheduler::do_run_one scheduler.ipp:447 boost::asio::detail::scheduler::run scheduler.ipp:200 boost::asio::io_context::run io_context.ipp:63 Server::run server.cc:45 main bridge.cc:61 __libc_start_main 0x00007f49b6b3f0b3 _start 0x00005588093476d ```
hadiTab commented 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).

ruffsl commented 4 years ago

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.

JR-Eagle commented 2 years ago

@ruffsl Could you tell me how to solve this issue? I have the same issue. The lgsvl simulator version is the lattest 21.3

ruffsl commented 2 years ago

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.

JR-Eagle commented 2 years ago

@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