Commit 17325d5
committed
fix(demos/ota): bypass turtlebot3_gazebo's hardcoded frame_prefix slash
turtlebot3_gazebo's robot_state_publisher.launch.py builds the
frame_prefix parameter with PythonExpression(["'", frame_prefix, "/'"]),
which appends a literal "/" even when the launch arg is empty. The
result was a tf tree where AMCL / odometry broadcast frames as
"base_link" (no slash) and robot_state_publisher published joint
transforms as "/base_link" (with slash). Two disjoint subgraphs - so
Foxglove rendered the URDF as a pile of disconnected meshes scattered
around the origin instead of a robot model attached to base_footprint.
Spawn robot_state_publisher directly from this launch with
frame_prefix='' (empty, no PythonExpression mutilation), reading the
turtlebot3 URDF off disk the same way the upstream launch does.
Result: tf_static now reports "base_link", "base_footprint" without
leading slashes, the URDF renders as one connected robot, and
"map -> base_link" resolves end-to-end.1 parent f48cbba commit 17325d5
1 file changed
Lines changed: 26 additions & 5 deletions
File tree
Lines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
140 | 161 | | |
141 | 162 | | |
142 | 163 | | |
| |||
0 commit comments