mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 09:47:46 +08:00
rtabmapviz: automatically read parameters from ros param server when receiving a map (fixing occupancy grid cell size not correctly set if rtabmapviz is started before rtabmap node, without having to open Preferences dialog and click apply to refresh the gui parameters)
This commit is contained in:
@@ -235,6 +235,12 @@ void GuiWrapper::goalReachedCallback(
|
||||
|
||||
void GuiWrapper::processRequestedMap(const rtabmap_ros::MapData & map)
|
||||
{
|
||||
// Make sure parameters are loaded
|
||||
if(((PreferencesDialogROS*)prefDialog_)->hasAllParameters())
|
||||
{
|
||||
QMetaObject::invokeMethod(((PreferencesDialogROS*)prefDialog_), "readRtabmapNodeParameters");
|
||||
}
|
||||
|
||||
std::map<int, Signature> signatures;
|
||||
std::map<int, Transform> poses;
|
||||
std::multimap<int, rtabmap::Link> constraints;
|
||||
|
||||
Reference in New Issue
Block a user