0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ubuntu20.04 ROS1 Noetic install memo

Last updated at Posted at 2023-05-03

ROS1(Ver.Noetic) install

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 install curl       # if you haven't already installed curl

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

sudo apt update

sudo apt install ros-noetic-desktop-full

op:apt search ros-noetic

sudo apt-get install python3-rosdep
#sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator 

python3-wstool build-essential
#sudo apt install python3-rosdep

sudo rosdep init

rosdep update

echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc

source ~/.bashrc

source /opt/ros/noetic/setup.bash

sudo apt-get -y install python3-rosinstall

sudo apt-get install -y python3-catkin-tools

test

ターミナル1>>

roscore

ターミナル2>>

rosrun rospy_tutorials talker.py

ターミナル3>>

rosrun rospy_tutorials listener.py

make work space

mkdir -p catkin_ws/src

cd catkin_ws/src

catkin_init_workspace

create pkg

cd catkin_ws/src

catkin_create_pkg pkg_name depend

exp.:catkin_create_pkg my_robot std_msgs rospy roscpp

The depend selection will be written to "package.xml" and "CMakeLists.txt",effect building or running.

Screenshot from 2023-05-07 19-08-17.png

###########finish

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?