Skip to content

Commit d4b634a

Browse files
committed
move robot pose and polygon to (0,0)
In GZ Ignition, tb3 publishes its ground truth pose as odometry with respect to its start position. Even when spawning the model at (5,5), the map->base_link transform is 0 because the robot did not drive. This causes navigation to fail as the robot pose is too far from the start of the path.
1 parent a1c843a commit d4b634a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

opennav_coverage_demo/launch/coverage_demo_launch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def generate_launch_description():
7070
launch_arguments={'namespace': '',
7171
'robot_name': 'turtlebot3_waffle',
7272
'robot_sdf': robot_sdf,
73-
'x_pose': str(5.0),
74-
'y_pose': str(5.0),
73+
'x_pose': str(0.0),
74+
'y_pose': str(0.0),
7575
'z_pose': str(0.1),
7676
'roll': str(0.0),
7777
'pitch': str(0.0),

opennav_coverage_demo/opennav_coverage_demo/demo_coverage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def main():
146146
navigator.startup()
147147

148148
# Some example field
149-
field = [[5.0, 5.0], [5.0, 15.0], [15.0, 15.0], [10.0, 5.0], [5.0, 5.0]]
149+
field = [[0.0, 0.0], [0.0, 15.0], [15.0, 15.0], [10.0, 0.0], [0.0, 0.0]]
150150
navigator.navigateCoverage(field)
151151

152152
i = 0

0 commit comments

Comments
 (0)