Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DualCoding::PilotRequest Class Reference

Request to the Pilot for motion or navigation. More...

#include <PilotRequest.h>


Detailed Description

Request to the Pilot for motion or navigation.

Definition at line 17 of file PilotRequest.h.

List of all members.

Public Member Functions

 PilotRequest (PilotTypes::RequestType_t _type=PilotTypes::noRequest)
 Constructor.
 PilotRequest (const PilotRequest &req)
PilotTypes::RequestType_t getRequestType () const
PilotRequestoperator= (const PilotRequest &req)
bool operator== (const PilotRequest &other) const

Public Attributes

PilotTypes::RequestType_t requestType
 Type of pilot request.
float dx
 Forward distance in mm (negative means go backward).
float dy
 Sideways distance in mm (positive to the left).
float da
 Rotation angle in radians (positive is counterclockwise).
float forwardSpeed
 Translation speed in mm/sec for dx or dy.
float strafeSpeed
 Sideways translational speed used for setVelocity.
float turnSpeed
 Rotational speed in radians/sec for da.
std::string walkParameters
PilotTypes::CollisionAction_t collisionAction
 What to do about collisions.
WaypointList waypointList
 Waypoint list for waypointWalk.
bool clearWaypoints
 If true, the waypointList will be cleared before appending new waypoints.
MapBuilderRequestlandmarkExtractor
 pointer to MapBuilderRequest used to find landmarks; will be deleted by the Pilot
bool(* landmarkExitTest )()
 Should return true if there are enough landmarks to localize.
MapBuilderRequestsearchObjectExtractor
 MapBuilderRequest to be used for visual search.
bool(* searchExitTest )()
 If true, terminate search and post a completion event.
AngSignPi searchRotationAngle
 Angle to rotate body to continue a visual search.
ShapeRoot targetShape
 Shape to walk to.
fmat::Column< 3 > baseOffset
 Point in the base reference frame to bring to the target location.
AngTwoPi targetHeading
 Heading on which we want to arrive at the target.
float gateLength
 Distance between the gate point and the target point when targetHeading or baseOffset used.
ShapeRoot objectShape
 Object we want to push to the target.
MapBuilderRequestobjectExtractor
 Pointer to MapbuilderRequest for finding the object to be pushed; will be deleted by the Pilot.
ShapeRoot(* objectMatcher )(const ShapeRoot &)
 Finds the localShS object matching objectShape in worldShS.
MapBuilderRequestacquireExtractor
 Pointer to MapBuilderRequest to check if we have acquired the object.
bool(* acquireTest )(const ShapeRoot &)
 Returns true if vision confirms that we have successfully acquired the object (e.g., for pushing).
bool allowBackwardMotion
 True if the robot should avoid large turns by walking backwards if distance is short.
float maxBackwardDistance
 Maximum allowable distance to walk backward instead of turning around.
void(* pathEditor )(std::vector< PilotTypes::NodeValue_t > *pathResult, PilotRequest &req)
void(* planEditor )(PilotTypes::NavigationPlan &plan, PilotRequest &req)
float obstacleInflation
 Inflation in mm of obstacle bounding shapes for path planning.
bool avoidCliffs
 If true, use IR to avoid walking off a cliff.
int cliffThreshold
 Maximum tolerable distance to the ground (millimeters).
bool avoidObstacles
 If true, use rangefinder sensors to dynamically avoid obstacles (not yet implemented).
int obstacleThreshold
 Minimum tolerable rangefinder distance to an obstacle (millimeters).
LookoutTrackRequesttrackRequest
 Lookout request for tracking objects while walking.
float displayParticles
 How many particles to display (number or percentage) as a single Graphics shape.
float displayIndividualParticles
 How many particles to display (number or percentage) as LocalizationParticle shapes.
bool displayPath
 If true, the planned path is displayed in the shape space.
bool displayTree
 If true, the RRT search tree is displayed in the world shape space.
bool displayObstacles
 If true, the obstacle boundaries used by the collision checker are displayed in the world shape space.
bool autoDisplayObstacles
 If true, the obstacle boundaries used by the collision checker are displayed in the world shape space automatically if path planning fails.
unsigned int maxRRTIterations
 Maximum number of iterations for path planner RRT search.
bool executePath
 If true, the Pilot will execute the path it has planned; if false, it plans but does not execute.
std::vector
< DualCoding::ShapeRoot > 
landmarks
 Vector of specific landmarks to use for localization, overriding the default.
BehaviorBaserequestingBehavior
 Used to construct a PilotEvent to notify the requesting node of the results of this Pilot operation.

Private Attributes

unsigned int requestID

Friends

class Pilot

Constructor & Destructor Documentation

DualCoding::PilotRequest::PilotRequest ( PilotTypes::RequestType_t  _type = PilotTypes::noRequest  ) 

Constructor.

Definition at line 8 of file PilotRequest.cc.

DualCoding::PilotRequest::PilotRequest ( const PilotRequest req  ) 

Definition at line 32 of file PilotRequest.cc.


Member Function Documentation

PilotTypes::RequestType_t DualCoding::PilotRequest::getRequestType (  )  const

Definition at line 27 of file PilotRequest.h.

PilotRequest & DualCoding::PilotRequest::operator= ( const PilotRequest req  ) 

Definition at line 62 of file PilotRequest.cc.

bool DualCoding::PilotRequest::operator== ( const PilotRequest other  )  const

Definition at line 97 of file PilotRequest.h.


Friends And Related Function Documentation

friend class Pilot [friend]

Definition at line 18 of file PilotRequest.h.


Member Data Documentation

Pointer to MapBuilderRequest to check if we have acquired the object.

Definition at line 57 of file PilotRequest.h.

Referenced by operator=().

bool(* DualCoding::PilotRequest::acquireTest)(const ShapeRoot &)

Returns true if vision confirms that we have successfully acquired the object (e.g., for pushing).

Definition at line 58 of file PilotRequest.h.

Referenced by operator=().

True if the robot should avoid large turns by walking backwards if distance is short.

Definition at line 60 of file PilotRequest.h.

Referenced by KoduInterpreter::MotionActionRunner::ExecuteMotionAction::ExecuteGoToShapeRequest::doStart(), Grasper::DoBodyTransport::doStart(), and operator=().

If true, the obstacle boundaries used by the collision checker are displayed in the world shape space automatically if path planning fails.

Definition at line 78 of file PilotRequest.h.

Referenced by operator=().

If true, use IR to avoid walking off a cliff.

Definition at line 67 of file PilotRequest.h.

Referenced by operator=().

If true, use rangefinder sensors to dynamically avoid obstacles (not yet implemented).

Definition at line 69 of file PilotRequest.h.

Referenced by operator=().

Point in the base reference frame to bring to the target location.

Definition at line 50 of file PilotRequest.h.

Referenced by KoduInterpreter::MotionActionRunner::ExecuteMotionAction::ExecuteGoToShapeRequest::doStart(), and operator=().

If true, the waypointList will be cleared before appending new waypoints.

Definition at line 40 of file PilotRequest.h.

Referenced by operator=().

Maximum tolerable distance to the ground (millimeters).

Definition at line 68 of file PilotRequest.h.

Referenced by operator=().

How many particles to display (number or percentage) as LocalizationParticle shapes.

Definition at line 74 of file PilotRequest.h.

Referenced by operator=().

If true, the obstacle boundaries used by the collision checker are displayed in the world shape space.

Definition at line 77 of file PilotRequest.h.

Referenced by operator=().

How many particles to display (number or percentage) as a single Graphics shape.

Definition at line 73 of file PilotRequest.h.

Referenced by operator=().

If true, the planned path is displayed in the shape space.

Definition at line 75 of file PilotRequest.h.

Referenced by operator=().

If true, the RRT search tree is displayed in the world shape space.

Definition at line 76 of file PilotRequest.h.

Referenced by operator=().

Sideways distance in mm (positive to the left).

Definition at line 31 of file PilotRequest.h.

Referenced by operator=(), and WalkSideways::preStart().

If true, the Pilot will execute the path it has planned; if false, it plans but does not execute.

Definition at line 80 of file PilotRequest.h.

Referenced by operator=().

Distance between the gate point and the target point when targetHeading or baseOffset used.

Definition at line 52 of file PilotRequest.h.

Referenced by operator=().

Should return true if there are enough landmarks to localize.

Definition at line 43 of file PilotRequest.h.

Referenced by DualCoding::Pilot::LocalizationUtility::CheckEnoughLandmarks::doStart(), and operator=().

std::vector<DualCoding::ShapeRoot> DualCoding::PilotRequest::landmarks

Vector of specific landmarks to use for localization, overriding the default.

Definition at line 81 of file PilotRequest.h.

Referenced by operator=().

Maximum allowable distance to walk backward instead of turning around.

Definition at line 61 of file PilotRequest.h.

Referenced by operator=().

Maximum number of iterations for path planner RRT search.

Definition at line 79 of file PilotRequest.h.

Referenced by Grasper::PlanBodyTransport::doStart(), Grasper::PlanBodyApproach::doStart(), operator=(), and Grasper::planBodyPath().

Pointer to MapbuilderRequest for finding the object to be pushed; will be deleted by the Pilot.

Definition at line 55 of file PilotRequest.h.

Referenced by operator=().

ShapeRoot(* DualCoding::PilotRequest::objectMatcher)(const ShapeRoot &)

Finds the localShS object matching objectShape in worldShS.

Definition at line 56 of file PilotRequest.h.

Referenced by DualCoding::Pilot::PushObjectMachine::FetchObj::doStart(), and operator=().

Inflation in mm of obstacle bounding shapes for path planning.

Definition at line 66 of file PilotRequest.h.

Referenced by operator=(), and Grasper::planBodyPath().

Minimum tolerable rangefinder distance to an obstacle (millimeters).

Definition at line 70 of file PilotRequest.h.

Referenced by operator=().

Definition at line 63 of file PilotRequest.h.

Referenced by operator=().

Definition at line 64 of file PilotRequest.h.

Referenced by operator=().

unsigned int DualCoding::PilotRequest::requestID [private]

Definition at line 100 of file PilotRequest.h.

Used to construct a PilotEvent to notify the requesting node of the results of this Pilot operation.

Definition at line 93 of file PilotRequest.h.

If true, terminate search and post a completion event.

Definition at line 46 of file PilotRequest.h.

Referenced by DualCoding::Pilot::VisualSearchMachine::Check::doStart(), DualCoding::Pilot::VisualSearchMachine::Search::doStart(), and operator=().

Sideways translational speed used for setVelocity.

Definition at line 34 of file PilotRequest.h.

Referenced by operator=().

Heading on which we want to arrive at the target.

Definition at line 51 of file PilotRequest.h.

Referenced by Grasper::DoBodyTransport::doStart(), Grasper::DoBodyApproach::doStart(), and operator=().

Lookout request for tracking objects while walking.

Definition at line 71 of file PilotRequest.h.

Referenced by operator=().

Definition at line 36 of file PilotRequest.h.

Referenced by operator=().

Waypoint list for waypointWalk.

Definition at line 39 of file PilotRequest.h.

Referenced by operator=().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:21 2016 by Doxygen 1.6.3