-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from ethz-asl/multi-machine-setup
Multi machine setup
- Loading branch information
Showing
6 changed files
with
94 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
# Fetch Demo | ||
|
||
## Launching the demo on the multi-machine setup | ||
|
||
### As a single launch file | ||
|
||
On the machine used for the user interface, run the following command to distribute the nodes. | ||
|
||
```bash | ||
roslaunch fetch_demo single_command.launch | ||
``` | ||
|
||
### Via SSH | ||
|
||
There is one launch file for each machine in the setup. They can all be launch from the user interface laptop via SSH as follows. | ||
|
||
Navigation nodes on ridgeback machine: | ||
|
||
```bash | ||
ssh asl-admin@asl-ridgeback "source /home/asl-admin/catkin_ws/devel/setup.zsh && roslaunch fetch_demo navigation.launch" | ||
``` | ||
|
||
Manipulation nodes on YuMi machine: | ||
|
||
```bash | ||
ssh asl-admin@asl-yumi "source /home/asl-admin/catkin_ws/devel/setup.zsh && roslaunch fetch_demo manipulation.launch" | ||
``` | ||
|
||
Perception nodes on moma-laptop: | ||
|
||
```bash | ||
ssh asl-admin@moma-laptop "source /home/asl-admin/catkin_ws/devel/setup.zsh && roslaunch fetch_demo perception.launch" | ||
``` | ||
|
||
On local user interface machine: | ||
|
||
```bash | ||
roslaunch fetch_demo user_interface.launch | ||
``` | ||
|
||
Each of these commands is blocking, they should be run in separate terminals. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" ?> | ||
<launch> | ||
<arg name="map_file" default="TODO"/> | ||
|
||
<!-- Rigeback navigation --> | ||
<node name="map_server" pkg="map_server" type="map_server" args="$(arg map_file)" /> | ||
|
||
<include file="$(find ridgeback_navigation)/launch/include/amcl.launch" /> | ||
<!-- TODO: AMCL is a localization system. Check if we still need this when using Maplab. --> | ||
|
||
<include file="$(find ridgeback_navigation)/launch/include/move_base.launch" /> | ||
<!-- TODO The parameters loaded in these launch files do not necessarily fit our map and setup in general. | ||
Might need to define our own parameter files. --> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" ?> | ||
<launch> | ||
<!-- Object detection --> | ||
<node pkg="fetch_demo" type="object_detection_node.py" name="object_detection_node" output="screen"/> | ||
|
||
<!-- TODO: launch Voxblox++ here --> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" ?> | ||
<launch> | ||
|
||
<include file="$(find fetch_demo)/launch/user_interface.launch"/> | ||
|
||
<group> | ||
<machine name="maniplation_machine" address="asl-yumi" default="true"/> | ||
<include file="$(find fetch_demo)/launch/manipulation.launch"/> | ||
</group> | ||
|
||
<group> | ||
<machine name="perception_machine" address="moma-laptop" default="true"/> | ||
<include file="$(find fetch_demo)/launch/perception.launch"/> | ||
</group> | ||
|
||
<group> | ||
<machine name="navigation_machine" address="asl-ridgeback" default="true"/> | ||
<include file="$(find fetch_demo)/launch/navigation.launch"/> | ||
</group> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" ?> | ||
<launch> | ||
<arg name="launch_rviz" default="true" /> | ||
|
||
<!-- Launch the execution system --> | ||
<node pkg="fetch_demo" type="run_sequentially.py" name="commander_node" output="screen"/> | ||
|
||
<!-- Launch RViz --> | ||
<node if="$(arg launch_rviz)" type="rviz" name="rviz" pkg="rviz" args="-d $(find grasp_demo)/config/rviz.rviz"/> | ||
</launch> |