Skip to content

Commit 0ac9c28

Browse files
committed
Forwarding waypoint command signal from popout map
When waypoints are added to the popout map the signal to send the appropriate ROS waypoint command is forwarded to the parent map. This makes adding waypoints in the popout map work just like in the parent map.
1 parent 3c17cbe commit 0ac9c28

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rqt_rover_gui/src/MapFrame.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,12 @@ void MapFrame::createPopoutWindow( MapData * map_data )
7474

7575
connect(this, SIGNAL(delayedUpdate()), popout_mapframe, SLOT(update()), Qt::QueuedConnection);
7676

77-
// Forward info messages from the popout framt to the rover gui via the signal in this parent map frame
77+
78+
// Forward signals from the popout map to the parent map for handling. We only need to forward signals
79+
// triggered by the popout object - such as mouse clicks
7880
connect(popout_mapframe, SIGNAL(sendInfoLogMessage(QString)), this, SIGNAL(sendInfoLogMessage(QString)));
81+
connect(popout_mapframe, SIGNAL(sendWaypointCmd(WaypointCmd, int, float, float)), this, SIGNAL(sendWaypointCmd(WaypointCmd, int, float, float)));
82+
7983
}
8084

8185
void MapFrame::paintEvent(QPaintEvent* event) {

0 commit comments

Comments
 (0)