Skip to content

Commit 0f5525b

Browse files
authored
Remove '/' (forward slash) from '/my_frame', which frustratingly makes Rviz unable to show the markers. (#70)
1 parent 1b372e3 commit 0f5525b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

visualization_marker_tutorials/src/basic_shapes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int main( int argc, char** argv )
5252
{
5353
visualization_msgs::Marker marker;
5454
// Set the frame ID and timestamp. See the TF tutorials for information on these.
55-
marker.header.frame_id = "/my_frame";
55+
marker.header.frame_id = "my_frame";
5656
marker.header.stamp = ros::Time::now();
5757
// %EndTag(MARKER_INIT)%
5858

visualization_marker_tutorials/src/points_and_lines.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int main( int argc, char** argv )
4646
{
4747
// %Tag(MARKER_INIT)%
4848
visualization_msgs::Marker points, line_strip, line_list;
49-
points.header.frame_id = line_strip.header.frame_id = line_list.header.frame_id = "/my_frame";
49+
points.header.frame_id = line_strip.header.frame_id = line_list.header.frame_id = "my_frame";
5050
points.header.stamp = line_strip.header.stamp = line_list.header.stamp = ros::Time::now();
5151
points.ns = line_strip.ns = line_list.ns = "points_and_lines";
5252
points.action = line_strip.action = line_list.action = visualization_msgs::Marker::ADD;

0 commit comments

Comments
 (0)