Getting Started
OS Install
Ubuntu 16.04 LTS is installed on PCs in the THORMANG3 and the PC for Remote Control Version.
NOTE : Install Ubuntu Desktop
Network Setting
This section explains how to configure the network for MPC(Motion PC) and PPC(Perception PC) of the robot, as well as the Wi-Fi switch and the OPC(Operating PC).
Access Point Setting
Access Point(AP) Information
- Model : D-Link DIR-806A
- Account
- user : admin
-
password : admin
Reference
DIR-806A Product Manual
AP Server
- Router Mode(Orange light)
- IP Address : 10.17.3.1
- WiFi Name (2.4G) : THORMANG-Sxx (xx : number)
- WiFi Name (5G) : THORMANG-Sxx-5G (xx : number)
- WiFi Password : 11111111
AP in THORMANG3
- Repeater Mode(Green light)
PC Setting
MPC (Motion PC)
- IP Address : 10.17.3.30
- Netmask : 255.255.255.0
- Gateway : 10.17.3.1
PPC (Perception PC)
- IP Address : 10.17.3.35
- Netmask : 255.255.255.0
- Gateway : 10.17.3.1
OPC (Operating PC)
- IP Address : 10.17.3.100
- Netmask : 255.255.255.0
- Gateway : 10.17.3.1
ROS Install
ROS(Robot Operating System) is required in order to control THORMANG3. Currently THORMANG3 is developed and tested with Kinetic Kame version of ROS.
NOTE : Install ROS
ROS Environment Setting
NOTE : Environment Setting Reference
NOTE : ROS Network Setup Reference
Network Setting Example
Above configuration has to be repeatedly done whenever a new terminal window is created. The following method will load configuration file when creating a terminal window. ROS Network setup is also performed when the configuration file is loaded.
System configuration
- PPC(Perception PC) : core PC
- IP : 10.17.3.35
- MPC(Motion PC)
- IP : 10.17.3.30
- OPC(Operation PC)
- IP : 10.17.3.100
Example setting for PPC
- Open the bash file with an editor to apply configuration.
$ gedit ~/.bashrc
- Append below contents at the end of the .bashrc file.
# Set ROS Kinetic source /opt/ros/kinetic/setup.bash source ~/catkin_ws/devel/setup.bash ##### Set ROS Network #### # PPC CORE(10.17.3.35) export ROS_MASTER_URI=http://10.17.3.35:11311 # local ROS IP export ROS_IP=10.17.3.35
- Use below command to apply modified configuration or open a new terminal window.
$ source ~/.bashrc
Example setting for MPC
- Open the bash file with an editor to apply configuration.
$ gedit ~/.bashrc
- Append below contents at the end of the .bashrc file.
# Set ROS Kinetic source /opt/ros/kinetic/setup.bash source ~/catkin_ws/devel/setup.bash ##### Set ROS Network #### # PPC CORE(10.17.3.35) export ROS_MASTER_URI=http://10.17.3.35:11311 # local ROS IP export ROS_IP=10.17.3.30
- Use below command to apply modified configuration or open a new terminal window.
$ source ~/.bashrc
Example setting for OPC
- Open the bash file with an editor to apply configuration.
$ gedit ~/.bashrc
- Append below contents at the end of the .bashrc file.
# Set ROS Kinetic source /opt/ros/kinetic/setup.bash source ~/catkin_ws/devel/setup.bash ##### Set ROS Network #### # PPC CORE(10.17.3.35) export ROS_MASTER_URI=http://10.17.3.35:11311 # local ROS IP export ROS_IP=10.17.3.100
- Use below command to apply modified configuration or open a new terminal window.
$ source ~/.bashrc
Time Synchronization
In order to run the ROS on multiple PCs, each PC clock has to be synchronized. The following script file comes in handy for this synchronization procedure. PPC time becomes the reference for synchronization, and perform below procedures only for MPC and OPC.
- Create the script file with an editor.
$ gedit ~/timesync
- Copy and paste below contents to the script file
#! /bin/sh sudo date --set='-2 secs' sudo ntpdate 10.17.3.35 sudo hwclock -w PPC(10.17.3.35)
- Modify the script file permission(Add execute permission)
$ sudo chmod +x timesync
- Run the script file to sync time for PPC, MPC and OPC.
$ ~/timesync
- If NTP socket is running, Stop the ntp service and sync time.
$ sudo service ntp stop $ ~/timesync
ROBOTIS ROS Package Install
This section introduces how to install the ROBOTIS ROS Package for THORMANG3.
- ROBOTIS-Framework : DXL SDK based Framework for ROBOTIS platforms
- ROBOTIS-Framework-msgs : ROS Messages used in the ROBOTIS-Framework
- ROBOTIS-Math : Math library for THORMANG3
- ROBOTIS-THORMANG-MPC : ROS Packages for the Motion PC of THORMANG3(DXL PRO Ver.)
- ROBOTIS-THORMANG-P-MPC : ROS Packages for the Motion PC of THORMANG3(DXL P Ver.)
- ROBOTIS-THORMANG-MPC-SENSORs : ROS Packages of sensors that is controled the Motion PC of THORMANG3
- ROBOTIS-THORMANG-PPC : ROS Packages for the Perception PC of THORMANG3
- ROBOTIS-THORMANG-OPC : ROS Packages for the Operating PC of THORMANG3
- ROBOTIS-THORMANG-Common : Common ROS Packages for THORMANG3
- ROBOTIS-THORMANG-msgs : ROS Messages used in the ROBOTIS THORMANG3 packages
- ROBOTIS-THORMANG-Tools
- ROBOTIS-Utility
MPC Installation
Install the ROBOTIS ROS Package from the MPC. The ROS Package is installed by default.
CAUTION : The packages to download differ depending on the version of ROBOTIS THORMANG3.
THORMANG3 WITH DYNAMIXEL PRO
-
Download Packages from GitHub to the source folder in the catkin workspace.
$ cd ~/catkin_ws/src $ git clone https://github.com/ROBOTIS-GIT/DynamixelSDK.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Math.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework-msgs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-MPC.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-MPC-SENSORs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-Common.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-msgs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-Tools.git
- After installing all dependent packages, go to the workspace and build.
$ cd ~/catkin_ws $ catkin_make
-
Find ft_calibration_data.yaml and ft_data.yaml from provided USB and copy them to the proper folder.
thormang3_manager/config/
THORMANG3 WITH DYNAMIXEL-P
-
Download Packages from GitHub to the source folder in the catkin workspace.
$ cd ~/catkin_ws/src $ git clone https://github.com/ROBOTIS-GIT/DynamixelSDK.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Math.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework-msgs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-P-MPC.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-MPC-SENSORs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-Common.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-msgs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-Tools.git
-
After installing all dependent packages, go to the workspace and build.
$ cd ~/catkin_ws $ catkin_make
-
Find ft_calibration_data.yaml and ft_data.yaml from provided USB and copy them to the proper folder.
thormang3_p_manager/config/
PPC Installation
Install the ROBOTIS ROS Package from the PPC. The ROS Package is installed by default.
- Download Packages from GitHub to the source folder in the catkin workspace.
$ cd ~/catkin_ws/src $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework-msgs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-msgs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-PPC.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Utility.git
- After installing all dependent packages, go to the workspace and build.
$ cd ~/catkin_ws $ catkin_make
OPC Installation
Install the ROBOTIS ROS Package from the OPC.
- Download Packages from GitHub to the source folder in the catkin workspace.
$ cd ~/catkin_ws/src $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework-msgs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Math.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-OPC.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-msgs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-THORMANG-Common.git
-
After installing all dependent packages, go to the workspace and build.
$ sudo apt install ros-kinetic-sbpl $ sudo apt install ros-kinetic-map-server $ sudo apt install ros-kinetic-humanoid-nav-msgs $ sudo apt install ros-kinetic-octomap ros-kinetic-octomap-msgs ros-kinetic-octomap-ros ros-kinetic-octomap-server $ sudo apt install ros-kinetic-qt-ros $ cd ~/catkin_ws/src $ git clone https://github.com/ROBOTIS-GIT/humanoid_navigation.git $ cd ~/catkin_ws $ catkin_make
- Dependencies Package contains ..
- qt-ros
- map_server
- nav_msgs
- humanoid_nav_msgs
- sbpl
- octomap-ros
INFO : If libGL
in 64bit Ubuntu has a problem, refer to Trouble Shooting.
Update
When the source is modified, update & build is necessary.
- Go to the folder where source is copied and run the pull command.(ex : ROBOTIS-THORMANG-OPC)
$ cd ~/catkin_ws/src/ROBOTIS-THORMANG-OPC $ git pull
- Build
$ cd ~/catkin_ws $ catkin_make
Additional ROS Package Install
The followings are required ROS Packages for THORMANG3 when installing desktop-full.
ROS Packages for MPC
Install below ROS Packages from the MPC. The Package is installed by default.
urg_node : ROS Package for Lidar
$ sudo apt install ros-kinetic-urg-node
Reference
: http://wiki.ros.org/urg_node
ROS Packages for PPC
Install the below ROS Package from the PPC. The Package is installed by default.
uvc_camera : ROS Package for USB camera
$ sudo apt install libv4l-dev
$ sudo apt install ros-kinetic-uvc-camera
Reference
: http://wiki.ros.org/uvc_camera
realsense
Reference
: http://wiki.ros.org/RealSense
ros_madplay_player, ros_mpg321_player
$ sudo apt install madplay mpg321