webots_ros2
webots_ros2 copied to clipboard
webots_ros2_driver and sumo traffic simulation not working
Describe the Bug When compiling v1.2.2 (or master) it is possible to control a vehicle (e.g. the tesla example). However, if you would like to add simulated traffic using the sumo simulation (as it is packaged by webots 2022a), there is library conflict. You can only do one thing, control the vehicle or start traffic simulation.
The reason for this library mismatch lies in different source code that is located in webots_ros2_driver/webots (compared between the git repo and the code required for webots 2022a). If the source files are replaced by hand from the files delivered in the webots 2022a binary package, it works well.
Steps to Reproduce
- checkout repo
- build ros2 modules for ros2 galactic
- modify tesla example to contain a sumo simulation
- start simulation
- starting sumo will fail with a missing symbol 5a. this error can be overcome by setting LD_LIBRARY_PATH to $WEBOTS_HOME/lib/controller. However, this results in not beeing able to run the tesla driver node anymore.
Expected behavior sumo simulation supervisor and webots_ros2_driver control node should run simultaniously (one conroling the robot and the other the traffic).
Affected Packages List of affected packages:
- webots_ros2_driver
System
- Webots Version: R2022a
- ROS Version: galactiv
- Operating System: Ubuntu 20.04
- Graphics Card: none
Thank you for raising this issue, we will investigate that!