Skip to content

Commit

Permalink
Add home_service.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
l0g1c-80m8 committed Jun 21, 2022
1 parent 4cbfe2d commit 105125d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion my_robot/launch/view_navigation.launch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<launch>

<node name="rviz" pkg="rviz" type="rviz" respawn="false"
args=" -d $(find my_robot)/rvizConfig/viz-test-nav.rviz"
args=" -d $(find my_robot)/rvizConfig/viz-test-marker.rviz"
/>

</launch>
27 changes: 27 additions & 0 deletions scripts/home_service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh

# Move to catkin_ws root
cd ../../

# Launch the world containing the robot
xterm -e " source devel/setup.bash; roslaunch my_robot world.launch " &

sleep 10

# Launch amcl package for localization
xterm -e " source devel/setup.bash; roslaunch my_robot amcl.launch " &

sleep 5

# Launch rviz to localize the results
xterm -e " source devel/setup.bash; roslaunch my_robot view_navigation.launch " &

sleep 5

# Launch add_markers to vizualize objects in rviz
xterm -e " source devel/setup.bash; roslaunch my_robot add_markers.launch " &

sleep 5

# Launch pick_object to guide robot across the map
xterm -e " source devel/setup.bash; roslaunch my_robot pick_objects.launch " &

0 comments on commit 105125d

Please sign in to comment.