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::LinkPtr _leftMarkerModel, const gazebo::physics::LinkPtr _rightMarkerModel)
 Constructor. More...
 
GateState IsPoseInGate (const ignition::math::Pose3d &_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::LinkPtr leftMarkerModel
 The left marker model. More...
 
ignition::math::Pose3d 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::LinkPtr 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 109 of file navigation_scoring_plugin.hh.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 25 of file navigation_scoring_plugin.cc.

Member Function Documentation

NavigationScoringPlugin::GateState NavigationScoringPlugin::Gate::IsPoseInGate ( const ignition::math::Pose3d &  _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 70 of file navigation_scoring_plugin.cc.

void NavigationScoringPlugin::Gate::Update ( )

Recalculate the pose and width of the gate.

Definition at line 35 of file navigation_scoring_plugin.cc.

Member Data Documentation

gazebo::physics::LinkPtr NavigationScoringPlugin::Gate::leftMarkerModel

The left marker model.

Definition at line 127 of file navigation_scoring_plugin.hh.

ignition::math::Pose3d 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 135 of file navigation_scoring_plugin.hh.

gazebo::physics::LinkPtr NavigationScoringPlugin::Gate::rightMarkerModel

The right marker model.

Definition at line 130 of file navigation_scoring_plugin.hh.

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

The state of this gate.

Definition at line 141 of file navigation_scoring_plugin.hh.

double NavigationScoringPlugin::Gate::width

The width of the gate in meters.

Definition at line 138 of file navigation_scoring_plugin.hh.


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


vrx_gazebo
Author(s): Brian Bingham , Carlos Aguero
autogenerated on Thu May 7 2020 03:54:56