-
-
Notifications
You must be signed in to change notification settings - Fork 153
Tutorial Using Driver without Launch File
Darko Lukić edited this page Aug 12, 2021
·
1 revision
Sometimes the simulation is heavy and you don't want to start all nodes over and over again. Instead, you can accelerate the development by restarting the controller (the Webots ROS 2 driver) only.
To run the driver it is enough to pass a URDF file with Webots configuration in it:
ros2 run webots_ros2_driver driver \
--ros-args \
--param robot_description:="$(cat path_to_webots_config.urdf)" \
An example of more a complex command would look like this:
ros2 run webots_ros2_driver driver \
--ros-args \
--param robot_description:="$(cat src/webots_ros2/webots_ros2_turtlebot/resource/turtlebot_webots.urdf)" \
--params-file src/webots_ros2/webots_ros2_turtlebot/resource/ros2control.yml \
-r /diffdrive_controller/cmd_vel_unstamped:=/cmd_vel
- The Ros2Supervisor Node
- Using URDF or Xacro
- Import your URDF Robot in Webots
- Refresh or Add URDF a Robot in a Running Simulation
- Wheeled robots
- Robotic arms
- Automobiles
- Drones