EasyManua.ls Logo

CLEARPATH Turtlebot4 - Page 117

Default Icon
153 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The --symlink-install allows us to install a symbolic link to our Python script, rather than a copy
of the script. This means that any changes we make to the script will be applied to the installed
script, so we don't need to rebuild the package after each change.
The --packages-select flag allows you to enter any number of packages that you want to build,
in case you don't want to build all packages in your workspace.
Now, try running the node:
ros2 run turtlebot4_python_tutorials turtlebot4_first_python_node
When you run it, nothing will happen until you press button 1 on your TurtleBot 4.
Press the button, and you should see this message in your terminal:
[INFO] [1652384338.145094927] [turtlebot4_first_python_node]: Button 1 Pressed!
Tip
Printing messages like this is a great way to debug your code.