Skip to content

Commit d54a1d6

Browse files
committed
Restore robot pose & polygon to (5,5)
and add (5,5) to map->odom tf as it is the transform from world/map frame to the robot's initial pose
1 parent c1b1423 commit d54a1d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

opennav_coverage_demo/launch/coverage_demo_launch.py

Lines changed: 3 additions & 3 deletions
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(0.0),
74-
'y_pose': str(0.0),
73+
'x_pose': str(5.0),
74+
'y_pose': str(5.0),
7575
'z_pose': str(0.1),
7676
'roll': str(0.0),
7777
'pitch': str(0.0),
@@ -94,7 +94,7 @@ def generate_launch_description():
9494
package='tf2_ros',
9595
executable='static_transform_publisher',
9696
output='screen',
97-
arguments=['0', '0', '0', '0', '0', '0', 'map', 'odom'])
97+
arguments=['5.0', '5.0', '0', '0', '0', '0', 'map', 'odom'])
9898

9999
# start the demo task
100100
demo_cmd = Node(

opennav_coverage_demo/opennav_coverage_demo/demo_coverage.py

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

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

152152
i = 0

0 commit comments

Comments
 (0)