Skip to content

Commit 0124d9e

Browse files
authored
Change default topic to avoid collision with Publish Point tool (#17)
1 parent f81dc0f commit 0124d9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ tool will publish the point in 3D space of the object on which the cursor rests
1010

1111
The base class of the tool cursor has the following properties:
1212

13-
- `Topic`: The topic on which to publish the 3D point in the Rviz environment when the left mouse button is clicked
13+
- `Pose Topic`: The topic on which to publish the 3D pose in the Rviz environment when the left mouse button is clicked
14+
- `Point Topic`: The topic on which to publish the 3D point (no orientation) in the Rviz environment when the left mouse button is clicked.
15+
- Note: If you want this to match the output of the `Publish Point` tool, you can remap `/tool_cursor_point` to `/clicked_point`. Alternatively, you can edit this in the `Panels > Tool Properties` menu.
1416
- `Patch Size`: The number of pixels on a side with which to create a patch used for estimated the surface normal
1517
- `Color`: The color of the cursor visualization
1618

src/rviz_tool_cursor/rviz_tool_cursor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ToolCursor::ToolCursor()
107107
"The topic on which to publish pose messages",
108108
getPropertyContainer(), SLOT(updateTopic()), this);
109109

110-
point_topic_property_ = new rviz::StringProperty("Point Topic", "/clicked_point",
110+
point_topic_property_ = new rviz::StringProperty("Point Topic", "/tool_cursor_point",
111111
"The topic on which to publish point messages",
112112
getPropertyContainer(), SLOT(updateTopic()), this);
113113

0 commit comments

Comments
 (0)