Skip to content

Commit

Permalink
Update Setting-Up-Simulation-Webots-Advanced.rst (ros2#4146)
Browse files Browse the repository at this point in the history
The import statement `from launch_ros.actions import Node` was missing in line 3

Signed-off-by: Michael Razum <[email protected]>
  • Loading branch information
MichaelRazum authored Jan 31, 2024
1 parent d5717df commit 1071ace
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,10 @@ You have to modify these two other files to launch your new node.
:language: cmake


Go to the file ``robot_launch.py`` and replace ``def generate_launch_description():`` with:
Go to the file ``robot_launch.py`` and replace it with:

.. literalinclude:: Code/robot_launch_sensor.py
:language: python
:lines: 10-40

This will create an ``obstacle_avoider`` node that will be included in the ``LaunchDescription``.

Expand Down

0 comments on commit 1071ace

Please sign in to comment.