Difference between revisions of "HamsterServer"
(→Single-master configuration:) |
|||
Line 25: | Line 25: | ||
1. Create hamster workspace: | 1. Create hamster workspace: | ||
− | <code>daria@daria:~$ mkdir -p hamster_ws/src</code> | + | <code><span style="color:brown">daria@daria:</span>~$ mkdir -p hamster_ws/src</code> |
2. Download hamster_server: | 2. Download hamster_server: | ||
− | <code>daria@daria:~$ cd hamster_ws/src</code> | + | <code><span style="color:brown">daria@daria:</span>~$ cd hamster_ws/src</code> |
− | <code>daria@daria:~/hamster_ws/src$ git clone https://github.com/cogniteam/hamster_server.git</code> | + | <code><span style="color:brown">daria@daria:</span>~/hamster_ws/src$ git clone https://github.com/cogniteam/hamster_server.git</code> |
3. Source workspace: | 3. Source workspace: | ||
Line 37: | Line 37: | ||
<strong>inside hamser_ws folder:</strong> | <strong>inside hamser_ws folder:</strong> | ||
− | <code>daria@daria:~/hamster_ws$ source /opt/ros/kinetic/setup.bash</code> | + | <code><span style="color:brown">daria@daria:</span>~/hamster_ws$ source /opt/ros/kinetic/setup.bash</code> |
− | <code>daria@daria:~/hamster_ws$ catkin_make -j2 -DCMAKE_BUILD_TYPE=Release</code> | + | <code><span style="color:brown">daria@daria:</span>:~/hamster_ws$ catkin_make -j2 -DCMAKE_BUILD_TYPE=Release</code> |
To .bashrc file add: | To .bashrc file add: | ||
Line 49: | Line 49: | ||
4. Launch multimaster server: | 4. Launch multimaster server: | ||
− | <code>daria@daria:~/hamster_ws$ roslaunch hamster_server_launch multimaster.launch</code> | + | <code><span style="color:brown">daria@daria:</span>~/hamster_ws$ roslaunch hamster_server_launch multimaster.launch</code> |
===<strong>Notes</strong>=== | ===<strong>Notes</strong>=== |
Revision as of 20:06, 31 March 2018
Few steps for hamster server install:
Contents
Single-master configuration:
https://wiki.cogni.io/index.php/HamsterROSWorkingEnvironment
Multi-master configuration
Bashrc configuration
Before all actions need to pre-configure local machine.Copy to .bashrc file:
export ROS_MASTER_URI=http://localhost:11311
export ROS_IP=localhost
and make source .bashrc
from terminal
Hamster workspace and launch configuration
1. Create hamster workspace:
daria@daria:~$ mkdir -p hamster_ws/src
2. Download hamster_server:
daria@daria:~$ cd hamster_ws/src
daria@daria:~/hamster_ws/src$ git clone https://github.com/cogniteam/hamster_server.git
3. Source workspace:
inside hamser_ws folder:
daria@daria:~/hamster_ws$ source /opt/ros/kinetic/setup.bash
daria@daria::~/hamster_ws$ catkin_make -j2 -DCMAKE_BUILD_TYPE=Release
To .bashrc file add:
source ~/hamster_ws/devel/setup.bash
and make source .bashrc
from terminal
4. Launch multimaster server:
daria@daria:~/hamster_ws$ roslaunch hamster_server_launch multimaster.launch
Notes
Rqt UI requires Linux Ubuntu 14.04 (Trusty)
Server launch reqiures 2 ros nodes install:
daria@daria:~$ sudo apt-get install ros-<distro>-master-discovery-fkie ros-<distro>-master-sync-fkie
<distro> - your ROS version (kinetic, indigo etc..)