Skip to content

Tutorial Create Webots Robot

Darko Lukić edited this page Oct 20, 2020 · 17 revisions

Webots offers a huge number of high-quality premade robot models. However, if you want to create a new one from scratch for your ROS2 application then Tutorial 6 is a great starting point. Please follow the tutorial and after you ensured the new robot model is working properly:

  1. Change the robot's controller field value to <extern>.
  2. Save the world.
  3. Execute ros2 launch webots_ros2_core robot_launch.py world:=/path/to/your/world.wbt

Launcher robot_launch.py automatically creates a ROS2 interface, so you can get sensor readings.

For more details on how to improve the ROS2 interface please follow the tutorial Write ROS2 Driver.

Clone this wiki locally