Public Member Functions | Public Attributes | List of all members
NavigationScoringPlugin::Gate Class Reference

A gate that is part of the navigation challenge. More...

Public Member Functions

 Gate (const gazebo::physics::ModelPtr _leftMarkerModel, const gazebo::physics::ModelPtr _rightMarkerModel)
 Constructor. More...
 
GateState IsPoseInGate (const gazebo::math::Pose &_robotWorldPose) const
 Where is the given robot pose with respect to the gate? More...
 
void Update ()
 Recalculate the pose and width of the gate. More...
 

Public Attributes

gazebo::physics::ModelPtr leftMarkerModel
 The left marker model. More...
 
gazebo::math::Pose pose
 The center of the gate in the world frame. Note that the roll and pitch are ignored. Only yaw is relevant and it points into the direction in which the gate should be crossed. More...
 
gazebo::physics::ModelPtr rightMarkerModel
 The right marker model. More...
 
GateState state = GateState::VEHICLE_OUTSIDE
 The state of this gate. More...
 
double width
 The width of the gate in meters. More...
 

Detailed Description

A gate that is part of the navigation challenge.

Definition at line 106 of file navigation_scoring_plugin.hh.

Constructor & Destructor Documentation

NavigationScoringPlugin::Gate::Gate ( const gazebo::physics::ModelPtr  _leftMarkerModel,
const gazebo::physics::ModelPtr  _rightMarkerModel 
)

Constructor.

Parameters
[in]_leftMarkerNameThe left marker's model.
[in]_rightMarkerNameThe right marker's model.

Definition at line 24 of file navigation_scoring_plugin.cc.

Member Function Documentation

NavigationScoringPlugin::GateState NavigationScoringPlugin::Gate::IsPoseInGate ( const gazebo::math::Pose _robotWorldPose) const

Where is the given robot pose with respect to the gate?

Parameters
_robotWorldPosePose of the robot, in the world frame.
Returns
The gate state given the current robot pose.

Definition at line 64 of file navigation_scoring_plugin.cc.

void NavigationScoringPlugin::Gate::Update ( )

Recalculate the pose and width of the gate.

Definition at line 34 of file navigation_scoring_plugin.cc.

Member Data Documentation

gazebo::physics::ModelPtr NavigationScoringPlugin::Gate::leftMarkerModel

The left marker model.

Definition at line 124 of file navigation_scoring_plugin.hh.

gazebo::math::Pose NavigationScoringPlugin::Gate::pose

The center of the gate in the world frame. Note that the roll and pitch are ignored. Only yaw is relevant and it points into the direction in which the gate should be crossed.

Definition at line 132 of file navigation_scoring_plugin.hh.

gazebo::physics::ModelPtr NavigationScoringPlugin::Gate::rightMarkerModel

The right marker model.

Definition at line 127 of file navigation_scoring_plugin.hh.

GateState NavigationScoringPlugin::Gate::state = GateState::VEHICLE_OUTSIDE

The state of this gate.

Definition at line 138 of file navigation_scoring_plugin.hh.

double NavigationScoringPlugin::Gate::width

The width of the gate in meters.

Definition at line 135 of file navigation_scoring_plugin.hh.


The documentation for this class was generated from the following files:


vmrc_gazebo
Author(s): Brian Bingham , Carlos Aguero
autogenerated on Sun Feb 17 2019 03:14:16