Skip to content

Commit

Permalink
Add shortcut "C" to the Publish Point tool (#1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaikiMaekawa authored and rhaschke committed Mar 29, 2019
1 parent a8eb5e8 commit 8ca07e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions help/help.html
Expand Up @@ -42,6 +42,10 @@ <h3>Switching between tools</h3>
<td class="key">P</td>
<td>Switch to the 2D Pose Estimate tool.</td>
</tr>
<tr class="even">
<td class="key">C</td>
<td>Switch to the Publish Point tool.</td>
</tr>
</table>
</p>

Expand Down
2 changes: 2 additions & 0 deletions src/rviz/default_plugin/tools/point_tool.cpp
Expand Up @@ -52,6 +52,8 @@ namespace rviz
PointTool::PointTool()
: Tool()
{
shortcut_key_ = 'c';

topic_property_ = new StringProperty( "Topic", "/clicked_point",
"The topic on which to publish points.",
getPropertyContainer(), SLOT( updateTopic() ), this );
Expand Down

0 comments on commit 8ca07e1

Please sign in to comment.