Comment not used things

This commit is contained in:
Unknown 2018-06-27 16:24:10 +02:00
parent f4facfe9b0
commit 24eb9f7713
2 changed files with 19 additions and 19 deletions

View file

@ -104,23 +104,23 @@ void InterfacePanel::updateType(int state)
// Save all configuration data from this panel to the given
// Config object. It is important here that you call save()
// on the parent class so the class id and panel name get saved.
void InterfacePanel::save( rviz::Config config ) const
{
rviz::Panel::save( config );
config.mapSetValue( "Error", _max_error );
}
// void InterfacePanel::save( rviz::Config config ) const
// {
// rviz::Panel::save( config );
// config.mapSetValue( "Error", _max_error );
// }
// Load all configuration data for this panel from the given Config object.
void InterfacePanel::load( const rviz::Config& config )
{
rviz::Panel::load( config );
QString error;
if( config.mapGetString( "Error", &error ))
{
_max_error_editor->setText( error );
updateError();
}
}
// // Load all configuration data for this panel from the given Config object.
// void InterfacePanel::load( const rviz::Config& config )
// {
// rviz::Panel::load( config );
// QString error;
// if( config.mapGetString( "Error", &error ))
// {
// _max_error_editor->setText( error );
// updateError();
// }
// }
} // end namespace

View file

@ -50,8 +50,8 @@ public:
// Now we declare overrides of rviz::Panel functions for saving and
// loading data from the config file. Here the data is the
// topic name.
virtual void load( const rviz::Config& config );
virtual void save( rviz::Config config ) const;
// virtual void load( const rviz::Config& config );
// virtual void save( rviz::Config config ) const;
// Next come a couple of public Qt slots.
public Q_SLOTS:
@ -76,7 +76,7 @@ protected:
QCheckBox* _objective_type_editor;
// The current name of the output topic.
QString _max_error;
// QString _max_error;
// The ROS publisher for the command velocity.
ros::Publisher _config_publisher;