A SAS driver based on cpp-interface-webots and DQ Robotics to integrate Webots in ROS2 Jazzy.
sas_driver_webots_example.mp4
Prerequisites
- DQ Robotics
- cpp-interface-webots
- ROS Jazzy and SAS
- Webots
- Open the ur3.wbt scene
Warning
Run this only once.
echo "# Update the environment variable LD_LIBRARY_PATH to include /usr/local/webots/lib/controller/, as instructed in https://ros2-tutorial.readthedocs.io" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/webots/lib/controller/" >> ~/.bashrcNote
If you installed cpp-interface-webots in a custom folder, you may need to update the ENV variables too. Check this tutorial.
For instance, if you build your ROS packages in ~/ros2_ws/:
cd ~/ros2_ws/src/
git clone https://github.com/juanjqo/sas_robot_driver_webots
cd ..
colcon build && source install/setup.bashros2 launch sas_robot_driver_webots example_launch.py ros2 topic pub /sas/ur3/set/target_joint_positions std_msgs/msg/Float64MultiArray "data: [-0.5,0,0,0,0,0]"