EffortDisplay::EffortDisplay()
    {
	alpha_property_ =
	    new rviz::FloatProperty( "Alpha", 1.0,
                                     "0 is fully transparent, 1.0 is fully opaque.",
                                     this, SLOT( updateColorAndAlpha() ));

	width_property_ =
	    new rviz::FloatProperty( "Width", 0.02,
                                     "Width to drow effort circle",
                                     this, SLOT( updateColorAndAlpha() ));

	scale_property_ =
	    new rviz::FloatProperty( "Scale", 1.0,
                                     "Scale to drow effort circle",
                                     this, SLOT( updateColorAndAlpha() ));

	history_length_property_ =
	    new rviz::IntProperty( "History Length", 1,
                                   "Number of prior measurements to display.",
                                   this, SLOT( updateHistoryLength() ));
        history_length_property_->setMin( 1 );
        history_length_property_->setMax( 100000 );


        robot_description_property_ =
            new rviz::StringProperty( "Robot Description", "robot_description",
                                      "Name of the parameter to search for to load the robot description.",
                                      this, SLOT( updateRobotDescription() ) );


        joints_category_ =
            new rviz::Property("Joints", QVariant(), "", this);
    }
// BEGIN_TUTORIAL
// The constructor must have no arguments, so we can't give the
// constructor the parameters it needs to fully initialize.
  OrkObjectDisplay::OrkObjectDisplay()
  {
    color_property_ = new rviz::ColorProperty("Color", QColor(204, 51, 204), "Color to draw the acceleration arrows.",
                                              this, SLOT(updateColorAndAlpha()));

    alpha_property_ = new rviz::FloatProperty("Alpha", 1.0, "0 is fully transparent, 1.0 is fully opaque.", this,
                                              SLOT(updateColorAndAlpha()));

    history_length_property_ = new rviz::IntProperty("History Length", 1, "Number of prior measurements to display.",
                                                     this, SLOT(updateHistoryLength()));
    history_length_property_->setMin(1);
    history_length_property_->setMax(100000);
  }
  MoveItCollisionMapDisplay::MoveItCollisionMapDisplay() {
    color_property_ = new rviz::ColorProperty("Color", QColor(204, 51, 204),
					      "Base color to draw the cubes.",
					      this, SLOT(updateColorAndAlpha()));
    
    alpha_property_ = new rviz::FloatProperty("Alpha", 1.0,
					      "0 is fully transparent, 1.0 is fully opaque.",
					      this, SLOT(updateColorAndAlpha()));
    
    history_length_property_ = new rviz::IntProperty("History Length", 5000,
						     "Number of cubes to display at the same time.",
						     this, SLOT(updateHistoryLength()));
    history_length_property_->setMin(1);
    history_length_property_->setMax(100000);
  }
    PointStampedDisplay::PointStampedDisplay()
    {
	color_property_ =
	    new rviz::ColorProperty( "Color", QColor(204, 41, 204),
                                     "Color of a point",
                                     this, SLOT( updateColorAndAlpha() ));

	alpha_property_ =
	    new rviz::FloatProperty( "Alpha", 1.0,
                                     "0 is fully transparent, 1.0 is fully opaque.",
                                     this, SLOT( updateColorAndAlpha() ));

	radius_property_ =
	    new rviz::FloatProperty( "Radius", 0.2,
                                     "Radius of a point",
                                     this, SLOT( updateColorAndAlpha() ));

	history_length_property_ =
	    new rviz::IntProperty( "History Length", 1,
                                   "Number of prior measurements to display.",
                                   this, SLOT( updateHistoryLength() ));
        history_length_property_->setMin( 1 );
        history_length_property_->setMax( 100000 );
    }
 void EffortDisplay::onInitialize()
 {
     MFDClass::onInitialize();
     updateHistoryLength();
 }
Example #6
0
// BEGIN_TUTORIAL
// The constructor must have no arguments, so we can't give the
// constructor the parameters it needs to fully initialize.
PathDisplay::PathDisplay()
{
  history_length_property_ = new rviz::IntProperty( "History Length", 1,
                                                    "Number of prior measurements to display.",
                                                    this, SLOT( updateHistoryLength() ));
  history_length_property_->setMin( 1 );
  history_length_property_->setMax( 100000 );

  slow_color_property_ = new rviz::ColorProperty( "Slow Color", QColor( 255, 0, 0 ),
                                          "Color to draw low speeds.",
                                           this, SLOT( updateSlowColor() ));

  fast_color_property_ = new rviz::ColorProperty( "Fast Color", QColor( 0, 255, 0 ),
                                          "Color to draw high speeds.",
                                           this, SLOT( updateFastColor() ));

  alpha_property_ = new rviz::FloatProperty( "Alpha", 1.0,
                                             "0 is transparent, 1 is opaque.",
                                             this, SLOT( updateAlpha() ));
  alpha_property_->setMin( 0.0 );
  alpha_property_->setMax( 1.0 );

  pose_length_property_ = new rviz::FloatProperty( "Pose Length", 0.3,
                                             "Length of pose gnomon arms.",
                                             this, SLOT( updatePoseLength() ));
  pose_length_property_->setMin( 0. );
  pose_length_property_->setMax( 5. );

  pose_radius_property_ = new rviz::FloatProperty( "Pose Radius", 0.03,
                                             "Radius of pose gnomon arms.",
                                             this, SLOT( updatePoseRadius() ));
  pose_radius_property_->setMin( 0. );
  pose_radius_property_->setMax( 1. );

  shaft_length_property_ = new rviz::FloatProperty( "Shaft Length", 0.1,
                                             "Length of arrow shafts.",
                                             this, SLOT( updateShaftLength() ));
  shaft_length_property_->setMin( 0. );
  shaft_length_property_->setMax( 5. );


  shaft_radius_property_ = new rviz::FloatProperty( "Shaft Radius", 0.04,
                                             "Radius of arrow shafts.",
                                             this, SLOT( updateShaftRadius() ));
  shaft_radius_property_->setMin( 0. );
  shaft_radius_property_->setMax( 1. );

  head_length_property_ = new rviz::FloatProperty( "Head Length", 0.08,
                                             "Length of arrow head.",
                                             this, SLOT( updateHeadLength() ));
  head_length_property_->setMin( 0. );
  head_length_property_->setMax( 5. );


  head_radius_property_ = new rviz::FloatProperty( "Head Radius", 0.06,
                                             "Radius of arrow head.",
                                             this, SLOT( updateHeadRadius() ));
  head_radius_property_->setMin( 0. );
  head_radius_property_->setMax( 2. );

  velocity_scale_property_ = new rviz::FloatProperty( "Velocity Scale", 2.0,
                                             "Velocity to length scale.",
                                             this, SLOT( updateVelocityScale() ));
  velocity_scale_property_->setMin( 0.01 );
  velocity_scale_property_->setMax( 10.0 );

  angular_rate_scale_property_ = new rviz::FloatProperty( "Angular Rate Scale", 2.7,
                                             "Angular rate to length scale.",
                                             this, SLOT( updateAngularRateScale() ));
  velocity_scale_property_->setMin( 0.01 );
  velocity_scale_property_->setMax( 10.0 );

}
 void PointStampedDisplay::onInitialize()
 {
     MFDClass::onInitialize();
     updateHistoryLength();
 }
 void MoveItCollisionMapDisplay::onInitialize() {
   MFDClass::onInitialize();
   updateHistoryLength();
 }
// After the top-level rviz::Display::initialize() does its own setup,
// it calls the subclass's onInitialize() function.  This is where we
// instantiate all the workings of the class.  We make sure to also
// call our immediate super-class's onInitialize() function, since it
// does important stuff setting up the message filter.
//
//  Note that "MFDClass" is a typedef of
// ``MessageFilterDisplay<message type>``, to save typing that long
// templated class name every time you need to refer to the
// superclass.
  void
  OrkObjectDisplay::onInitialize()
  {
    MFDClass::onInitialize();
    updateHistoryLength();
  }
Example #10
0
// After the top-level rviz::Display::initialize() does its own setup,
// it calls the subclass's onInitialize() function.  This is where we
// instantiate all the workings of the class.  We make sure to also
// call our immediate super-class's onInitialize() function, since it
// does important stuff setting up the message filter.
//
//  Note that "MFDClass" is a typedef of
// ``MessageFilterDisplay<message type>``, to save typing that long
// templated class name every time you need to refer to the
// superclass.
void IntervalDisplay::onInitialize()
{
  MFDClass::onInitialize();
  updateHistoryLength();
}