ROS_OP_PC_Set - 8BitsCoding/RobotMentor GitHub Wiki

PC ์…‹์—… ๋ฐ ์†Œ์Šค์ฝ”๋“œ ํด๋ก 

PC ์…‹์—…

# ROS์„ค์น˜
$ sudo apt-get update
$ sudo apt-get upgrade
$ wget https://raw.githubusercontent.com/ROBOTIS-GIT/robotis_tools/master/install_ros_kinetic.sh && chmod 755 ./install_ros_kinetic.sh && bash ./install_ros_kinetic.sh
# ROS ํŒจํ‚ค์ง€ ์„ค์น˜
$ sudo apt-get install ros-kinetic-ros-controllers ros-kinetic-gazebo* ros-kinetic-moveit* ros-kinetic-industrial-core

$ cd ~/catkin_ws/src/
$ git clone https://github.com/ROBOTIS-GIT/DynamixelSDK.git
$ git clone https://github.com/ROBOTIS-GIT/dynamixel-workbench.git
$ git clone https://github.com/ROBOTIS-GIT/dynamixel-workbench-msgs.git
$ git clone https://github.com/ROBOTIS-GIT/robotis_manipulator.git
$ git clone https://github.com/ROBOTIS-GIT/open_manipulator.git
$ git clone https://github.com/ROBOTIS-GIT/open_manipulator_msgs.git
$ git clone https://github.com/ROBOTIS-GIT/open_manipulator_simulations.git
$ cd ~/catkin_ws && catkin_make

์—ฌ๊ธฐ๊นŒ์ง€ํ•˜๋ฉด ์ค€๋น„๋Š” ์™„๋ฃŒ!


์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ์‹คํ–‰์‹œ์ผœ๋ณด๊ธฐ

Gazebo ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ

$ roslaunch open_manipulator_gazebo open_manipulator_gazebo.launch

Gazebo์‹คํ–‰ ํ›„ ํ”Œ๋ ˆ์ด ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์•ผ ์‹œ๋ฎฌ๋ ˆ์ด์…˜์ด ์‹œ์ž‘๋จ์„ ๊ธฐ์–ต

์ด๋ฏธ์ง€


OpenManipulator Controller ์‹คํ–‰

์‹คํ–‰์€ ์‹ค์ œ ๋ชจ๋ธ๋กœ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๊ณ , Gazebo๋ฅผ ํ†ตํ•ด ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ ์‹คํ–‰ ๋ช…๋ น์–ด๊ฐ€ ์•„์ฃผ ์กฐ๊ธˆ ๋‹ค๋ฅธ๋‹ค.

# Gazebo๋ฅผ ํ†ตํ•ด ์‹œ๋ฎฌ๋ ˆ์ด์…˜
$ roslaunch open_manipulator_controller open_manipulator_controller.launch use_platform:=false


Rviz์—์„œ 3D๋กœ ๋™์ž‘ํ™•์ธ

$ roslaunch open_manipulator_description open_manipulator_rviz.launch

GUI๋กœ ์ œ์–ด๋ฉ”์‹œ์ง€ ๋ณด๋‚ด๋ณด๊ธฐ

$ roslaunch open_manipulator_control_gui open_manipulator_control_gui.launch

ํ‚ค๋ณด๋“œ๋กœ ์ œ์–ด๋ฉ”์‹œ์ง€ ๋ณด๋‚ด๋ณด๊ธฐ

$ roslaunch open_manipulator_teleop open_manipulator_teleop_keyboard.launch

MoveIt์œผ๋กœ ์ œ์–ด๋ฉ”์‹œ์ง€ ๋ณด๋‚ด๋ณด๊ธฐ

# ์‹ค์ œ ํ™˜๊ฒฝ์ด๋ผ๋ฉด
$ roslaunch open_manipulator_controller open_manipulator_controller.launch use_moveit:=true

# Gazebo ํ™˜๊ฒฝ์ด๋ผ๋ฉด
$ roslaunch open_manipulator_controller open_manipulator_controller.launch use_moveit:=true use_platform:=false