Difference between revisions of "HamsterServer"

From cogniteam
Jump to: navigation, search
 
(73 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
[[Category:HamsterV5]]
 
[[Category:HamsterV5]]
 
[[Category:HamsterV4]]
 
[[Category:HamsterV4]]
 +
[[Category:HamsterV7]]
 
[[Category:Hamster]]
 
[[Category:Hamster]]
  
 
Few steps for hamster server install:
 
Few steps for hamster server install:
  
<strong>Single-master configuration:</strong>
+
==<strong>Single-master configuration (deprecated from January 2018):</strong>==
  
 +
===Bashrc configuration===
  
<strong>Multi-master configuration:</strong>
+
Before all actions need to pre-configure local machine.Copy to <strong>.bashrc</strong> file:
  
1. On your laptop create hamster workspace:
+
<syntaxhighlight lang="bash">
 +
export ROS_MASTER_URI=http://10.0.2.152:11311
 +
export ROS_IP=10.0.2.152
 +
</syntaxhighlight>
  
<code>mkdir -p hamster_ws/src</code>
+
Local machine should be configured to static IP 10.0.2.152
  
2. Inside scr folder download hamster_server
+
Run <code>source .bashrc</code> from terminal
  
<code>cd hamster_ws/src</code>
+
===Hamster workspace and launch configuration===
  
<code>git clone https://git.cogni.io/hamster/hamster_server_launch.git</code>
+
1. Create hamster workspace:
  
3. Make source for you workspace:
+
<code><span style="color:brown">daria@daria:</span>~$ mkdir -p hamster_ws/src</code>
  
<strong>inside hamser_ws folder</strong>
+
2. Download hamster_server:
  
<code>source devel/setup.bash</code>
+
<code><span style="color:brown">daria@daria:</span>~$ cd hamster_ws/src</code>
  
4. Switch to multimaster branch:
+
<strong>For Ubuntu 14.04 (ros indigo):</strong>
  
<code>roscd hamster_server_launch</code>
+
<code><span style="color:brown">daria@daria:</span>~/hamster_ws/src$ git clone -b indigo-devel https://github.com/cogniteam/hamster_server.git</code>
  
<code> git checkout origin/multimaster</code>
+
<strong>For Ubuntu 16.04 (ros kinetic):</strong>
  
4.
+
<code><span style="color:brown">daria@daria:</span>~/hamster_ws/src$ git clone -b kinetic-devel https://github.com/cogniteam/hamster_server.git</code>
 +
 
 +
<strong>For Ubuntu 18.04 (ros melodic):</strong>
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws/src$ git clone -b melodic-devel https://github.com/cogniteam/hamster_server.git</code>
 +
 
 +
3. Source workspace:
 +
 
 +
<strong>inside hamser_ws folder:</strong>
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws$ source /opt/ros/kinetic/setup.bash</code>
 +
 
 +
ROS dependencies update:
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws$ rosdep install --from-paths src --ignore-src -y -r</code>
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws$ catkin_make -j2 -DCMAKE_BUILD_TYPE=Release</code>
 +
 
 +
To .bashrc file add:
 +
 
 +
<code> source ~/hamster_ws/devel/setup.bash</code>
 +
 
 +
and execute <code>source .bashrc</code> from terminal
 +
 
 +
4. Launch multimaster server:
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws$ roslaunch hamster_server_launch server.launch</code>
 +
 
 +
==<strong>Multi-master configuration (in use from 2018)</strong>==
 +
 
 +
===Bashrc configuration===
 +
 
 +
Before all actions need to pre-configure local machine.Copy to <strong>.bashrc</strong> file:
 +
 
 +
<syntaxhighlight lang="bash">
 +
export ROS_MASTER_URI=http://YOUR_IP:11311
 +
export ROS_IP=YOUR_IP
 +
</syntaxhighlight>
 +
 
 +
YOUR_IP - local machine IP (<code>ifconfig</code> in teminal).
 +
 
 +
Should be static IP in 10.0.2.* subnet.
 +
 
 +
Run <code>source .bashrc</code> from terminal
 +
 
 +
===Hamster workspace and launch configuration===
 +
 
 +
1. Create hamster workspace:
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~$ mkdir -p hamster_ws/src</code>
 +
 
 +
2. Download hamster_server:
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~$ cd hamster_ws/src</code>
 +
 
 +
<strong>For Ubuntu 14.04 (ros indigo):</strong>
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws/src$ git clone -b indigo-devel https://github.com/cogniteam/hamster_server.git</code>
 +
 
 +
<strong>For Ubuntu 16.04 (ros kinetic):</strong>
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws/src$ git clone -b kinetic-devel https://github.com/cogniteam/hamster_server.git</code>
 +
 
 +
<strong>For Ubuntu 18.04 (ros melodic):</strong>
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws/src$ git clone -b melodic-devel https://github.com/cogniteam/hamster_server.git</code>
 +
 
 +
3. Source workspace:
 +
 
 +
<strong>inside hamser_ws folder:</strong>
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws$ source /opt/ros/kinetic/setup.bash</code>
 +
 
 +
ROS dependencies update:
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws$ rosdep install --from-paths src --ignore-src -y -r</code>
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws$ catkin_make -j2 -DCMAKE_BUILD_TYPE=Release</code>
 +
 
 +
To .bashrc file add:
 +
 
 +
<code> source ~/hamster_ws/devel/setup.bash</code>
 +
 
 +
and execute <code>source .bashrc</code> from terminal
 +
 
 +
4. Launch multimaster server:
 +
 
 +
<code><span style="color:brown">daria@daria:</span>~/hamster_ws$ roslaunch hamster_server_launch multimaster.launch</code>

Latest revision as of 12:08, 19 September 2019


Few steps for hamster server install:

Single-master configuration (deprecated from January 2018):

Bashrc configuration

Before all actions need to pre-configure local machine.Copy to .bashrc file:

<syntaxhighlight lang="bash"> export ROS_MASTER_URI=http://10.0.2.152:11311 export ROS_IP=10.0.2.152 </syntaxhighlight>

Local machine should be configured to static IP 10.0.2.152

Run 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

For Ubuntu 14.04 (ros indigo):

daria@daria:~/hamster_ws/src$ git clone -b indigo-devel https://github.com/cogniteam/hamster_server.git

For Ubuntu 16.04 (ros kinetic):

daria@daria:~/hamster_ws/src$ git clone -b kinetic-devel https://github.com/cogniteam/hamster_server.git

For Ubuntu 18.04 (ros melodic):

daria@daria:~/hamster_ws/src$ git clone -b melodic-devel https://github.com/cogniteam/hamster_server.git

3. Source workspace:

inside hamser_ws folder:

daria@daria:~/hamster_ws$ source /opt/ros/kinetic/setup.bash

ROS dependencies update:

daria@daria:~/hamster_ws$ rosdep install --from-paths src --ignore-src -y -r

daria@daria:~/hamster_ws$ catkin_make -j2 -DCMAKE_BUILD_TYPE=Release

To .bashrc file add:

source ~/hamster_ws/devel/setup.bash

and execute source .bashrc from terminal

4. Launch multimaster server:

daria@daria:~/hamster_ws$ roslaunch hamster_server_launch server.launch

Multi-master configuration (in use from 2018)

Bashrc configuration

Before all actions need to pre-configure local machine.Copy to .bashrc file:

<syntaxhighlight lang="bash"> export ROS_MASTER_URI=http://YOUR_IP:11311 export ROS_IP=YOUR_IP </syntaxhighlight>

YOUR_IP - local machine IP (ifconfig in teminal).

Should be static IP in 10.0.2.* subnet.

Run 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

For Ubuntu 14.04 (ros indigo):

daria@daria:~/hamster_ws/src$ git clone -b indigo-devel https://github.com/cogniteam/hamster_server.git

For Ubuntu 16.04 (ros kinetic):

daria@daria:~/hamster_ws/src$ git clone -b kinetic-devel https://github.com/cogniteam/hamster_server.git

For Ubuntu 18.04 (ros melodic):

daria@daria:~/hamster_ws/src$ git clone -b melodic-devel https://github.com/cogniteam/hamster_server.git

3. Source workspace:

inside hamser_ws folder:

daria@daria:~/hamster_ws$ source /opt/ros/kinetic/setup.bash

ROS dependencies update:

daria@daria:~/hamster_ws$ rosdep install --from-paths src --ignore-src -y -r

daria@daria:~/hamster_ws$ catkin_make -j2 -DCMAKE_BUILD_TYPE=Release

To .bashrc file add:

source ~/hamster_ws/devel/setup.bash

and execute source .bashrc from terminal

4. Launch multimaster server:

daria@daria:~/hamster_ws$ roslaunch hamster_server_launch multimaster.launch