MCPcopy Create free account
hub / github.com/PickNikRobotics/rviz_visual_tools / processKeyEvent

Method processKeyEvent

src/key_tool.cpp:65–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65int KeyTool::processKeyEvent(QKeyEvent* event, rviz_common::RenderPanel* panel)
66{
67 // move forward / backward
68 switch (event->key())
69 {
70 case Qt::Key_0:
71 remote_reciever_.publishNext();
72 return 1;
73 case Qt::Key_1:
74 remote_reciever_.publishContinue();
75 return 1;
76 case Qt::Key_2:
77 remote_reciever_.publishBreak();
78 return 1;
79 case Qt::Key_3:
80 remote_reciever_.publishStop();
81 return 1;
82 }
83
84 return move_tool_.processKeyEvent(event, panel);
85}
86
87int KeyTool::processMouseEvent(rviz_common::ViewportMouseEvent& event)
88{

Callers

nothing calls this directly

Calls 4

publishNextMethod · 0.80
publishContinueMethod · 0.80
publishBreakMethod · 0.80
publishStopMethod · 0.80

Tested by

no test coverage detected