![]() **Run the example C++ talker **at /opt/ros/humble/lib/demo_nodes_cpp/talker: $ ros2 run demo_nodes_cpp talker Run the following commands if you’re using a zsh shell: echo "source /opt/ros/humble/setup.zsh" > ~/.zshrcĪfter completing the desktop install, let’s make sure that our APIs are working properly. Run the following commands if you’re using a bash shell: echo "source /opt/ros/humble/setup.bash" > ~/.bashrc To save yourself the time, you can automatically trigger this step every time you launch a new shell. Typically, you would need to source your setup file every time you open a terminal to use ROS: $ source /opt/ros/humble/setup.bash This will install a few different components like the core ROS libraries, developer tools like RViz, and a set of beginner-friendly tutorials and demos to help you get started. Install your ROS 2 Humble desktop setup with the following commands: $ sudo apt update # update your apt repo caches $ echo "deb $( source /etc/os-release & echo $UBUNTU_CODENAME ) main" | sudo tee /etc/apt//ros2.list > /dev/null $ sudo curl -sSL -o /usr/share/keyrings/ros-archive-keyring.gpg Authorize the public GPG ( GNU Privacy Guard) key provided by ROS, then add the ROS 2 repository to your sources list: $ sudo apt update & sudo apt install curl gnupg lsb-release Now you can add the ROS 2 repository to your system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |