mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 17:57:45 +08:00
MERGE branch STM 325:449 into trunk
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@450 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -30,7 +30,8 @@ PreferencesDialogROS::~PreferencesDialogROS()
|
||||
void PreferencesDialogROS::readCameraSettings(const QString & filePath)
|
||||
{
|
||||
double imgRate = 0;
|
||||
nh_.getParam("cam/image_rate", imgRate);
|
||||
ros::NodeHandle nh;
|
||||
nh.getParam("camera/image_hz", imgRate);
|
||||
this->setImgRate(imgRate);
|
||||
}
|
||||
|
||||
@@ -43,13 +44,14 @@ void PreferencesDialogROS::readCoreSettings(const QString & filePath)
|
||||
{
|
||||
if(filePath.isEmpty())
|
||||
{
|
||||
ros::NodeHandle nh("rtabmap");
|
||||
ROS_INFO("%s", this->getParamMessage().toStdString().c_str());
|
||||
bool validParameters = true;
|
||||
rtabmap::ParametersMap parameters = rtabmap::Parameters::getDefaultParameters();
|
||||
for(rtabmap::ParametersMap::iterator i=parameters.begin(); i!=parameters.end(); ++i)
|
||||
{
|
||||
std::string value;
|
||||
if(nh_.getParam((*i).first,value))
|
||||
if(nh.getParam((*i).first,value))
|
||||
{
|
||||
PreferencesDialog::setParameter((*i).first, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user