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