flatland_viz/src/spawn_model_tool.cpp
void SpawnModelTool::activate() {
  ROS_INFO_STREAM("SpawnModelTool::activate ");

  LoadModelDialog *model_dialog = new LoadModelDialog(NULL, this);
  model_dialog->setModal(true);
  model_dialog->show();
}
// Activate() is called when the tool is started by the user, either
// by clicking on its button in the toolbar or by pressing its hotkey.
//
// First we set the moving model node to be visible, then we create an
// rviz::VectorProperty to show the user the position of the model.
// Unlike rviz::Display, rviz::Tool is not a subclass of
// rviz::Property, so when we want to add a tool property we need to
// get the parent container with getPropertyContainer() and add it to
// that.
//
// We wouldn't have to set current_model_property_ to be read-only, but
// if it were writable the model should really change position when the
// user edits the property.  This is a fine idea, and is possible, but
// is left as an exercise for the reader.
Activate() is called when the tool is started by the user, either
by clicking on its button in the toolbar or by pressing its hotkey.

First we set the moving model node to be visible, then we create an
rviz::VectorProperty to show the user the position of the model.

We wouldn't have to set current_model_property_ to be read-only, but
if it were writable the model should really change position when the
user edits the property.  This is a fine idea, and is possible, but
is left as an exercise for the reader.
Activate () is called when the tool is started by the user either by clicking on its button in the toolbar or by pressing its hotkey . First we set the moving model node to be visible then we create an rviz :: VectorProperty to show the user the position of the model . We wouldn ' t have to set current_model_property_ to be read - only but if it were writable the model should really change position when the user edits the property . This is a fine idea and is possible but is left as an exercise for the reader .
void SpawnModelTool::activate() {
  ROS_INFO_STREAM("SpawnModelTool::activate ");
  LoadModelDialog *model_dialog = new LoadModelDialog(NULL, this);
  model_dialog->setModal(true);
  model_dialog->show();
}
void SpawnModelTool :: activate ( ) { ROS_INFO_STREAM ( " " ) ; LoadModelDialog * model_dialog = new LoadModelDialog ( NULL , this ) ; model_dialog -> setModal ( true ) ; model_dialog -> show ( ) ; }
Activate() is called when the tool is started by the user, either
by clicking on its button in the toolbar or by pressing its hotkey.
Activate () is called when the tool is started by the user either by clicking on its button in the toolbar or by pressing its hotkey .