Difference between revisions of "Jetbot ROS"
From ESS-WIKI
Line 8: | Line 8: | ||
<pre># enable all Ubuntu packages: | <pre># enable all Ubuntu packages: | ||
− | sudo apt-add-repository universe | + | $ sudo apt-add-repository universe |
− | sudo apt-add-repository multiverse | + | $ sudo apt-add-repository multiverse |
− | sudo apt-add-repository restricted | + | $ sudo apt-add-repository restricted |
# add ROS repository to apt sources | # add ROS repository to apt sources | ||
− | sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | + | $ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' |
− | sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | + | $ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 |
# install ROS Base | # install ROS Base | ||
− | sudo apt-get update | + | $ sudo apt-get update |
− | sudo apt-get install ros-melodic-ros-base | + | $ sudo apt-get install ros-melodic-ros-base |
# add ROS paths to environment | # add ROS paths to environment | ||
− | sudo sh -c 'echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc' | + | $ sudo sh -c 'echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc' |
</pre> | </pre> | ||
Revision as of 08:17, 17 November 2022
Linux Version
jetson-nx-jp451-sd-card-image
Install ROS melodic
Install ROS melodic
# enable all Ubuntu packages: $ sudo apt-add-repository universe $ sudo apt-add-repository multiverse $ sudo apt-add-repository restricted # add ROS repository to apt sources $ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' $ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 # install ROS Base $ sudo apt-get update $ sudo apt-get install ros-melodic-ros-base # add ROS paths to environment $ sudo sh -c 'echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc'
Install python
# pip should be installed $ sudo apt-get install python-pip # install Adafruit libraries $ pip install Adafruit-MotorHAT $ pip install Adafruit-SSD1306