Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run demo.launch on melodic #101

Open
wants to merge 3 commits into
base: gazebo9
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions fetch_gazebo_demo/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,15 @@
<!-- Drive to the table, pick stuff up -->
<node name="demo" pkg="fetch_gazebo_demo" type="demo.py" output="screen" />

<!-- set rosparams to increase demo success rate -->
<rosparam>
<!-- Set inflation radius smaller inflation than default for fetch to come through narrow door -->
/move_base/local_costmap/inflater/inflation_radius: 0.3
/move_base/global_costmap/inflater/inflation_radius: 0.3
<!-- Set fetch's amcl pose at the origin of the map at the start of this demo, even if rosmaster was not killed and previous pose is saved -->
/amcl/initial_pose_x: 0.0
/amcl/initial_pose_y: 0.0
/amcl/initial_pose_a: 0.0
</rosparam>

</launch>
4 changes: 2 additions & 2 deletions fetch_gazebo_demo/scripts/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def updateScene(self):
self.scene.addSolidPrimitive(obj.object.name,
obj.object.primitives[0],
obj.object.primitive_poses[0],
wait = False)
erelson marked this conversation as resolved.
Show resolved Hide resolved
use_service=False)

for obj in find_result.support_surfaces:
# extend surface to floor, and make wider since we have narrow field of view
Expand All @@ -163,7 +163,7 @@ def updateScene(self):
self.scene.addSolidPrimitive(obj.name,
obj.primitives[0],
obj.primitive_poses[0],
wait = False)
use_service=False)

self.scene.waitForSync()

Expand Down