|
orca-robotics INTRODUCTION Overview Download and Install Quick Start Documentation Publications REPOSITORY Interfaces Components Libraries Utilities Software Map DEVELOPER Tutorials Examples Dev Guide Dashboard Wiki login/pass: orca/orca PEOPLE Contributors Users Project Download Mailing lists
|
orca::PathFollower2d Class ReferenceThe Path Follower.
More...
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| PathFollower2dData | getData () |
| void | setData (PathFollower2dData path, bool activateImmediately) throw ( MalformedParametersException, OrcaException) |
| void | activateNow ()) |
| int | getWaypointIndex () |
| bool | getAbsoluteActivationTime (out Time activationTime) |
| bool | getRelativeActivationTime (out double secondsSinceActivation) |
| void | setEnabled (bool enabled) |
| bool | enabled () |
| Get the enabled/disabled state. | |
| void | subscribe (PathFollower2dConsumer *subscriber) throw ( SubscriptionFailedException) |
| void | unsubscribe (PathFollower2dConsumer *subscriber)) |
To make the follower follow a path:
| PathFollower2dData orca::PathFollower2d::getData | ( | ) |
Returns the path currently being followed, or throws DataNotExistException if none has been set.
| void orca::PathFollower2d::setData | ( | PathFollower2dData | path, | |
| bool | activateImmediately | |||
| ) | throw ( MalformedParametersException, OrcaException) |
Loads the follower with a path to follow. If activateImmediately is false, the follower won't go anywhere until activateNow() is called.
Loading the follower with a new path while it is active over-writes the old path. The activation status of the follower is set to the value of activateImmediately.
The follower can therefore be stopped by calling setData(emptyPath,false).
| void orca::PathFollower2d::activateNow | ( | ) |
Start following the previously-loaded path. alexm: what happens when none is loaded? Silently ignored?
| int orca::PathFollower2d::getWaypointIndex | ( | ) |
Returns the index of the waypoint which is currently pursued:
| bool orca::PathFollower2d::getAbsoluteActivationTime | ( | out Time | activationTime | ) |
If the PathFollower is active (alexm: what does that mean? has path?)
| bool orca::PathFollower2d::getRelativeActivationTime | ( | out double | secondsSinceActivation | ) |
If the PathFollower is active:
| void orca::PathFollower2d::setEnabled | ( | bool | enabled | ) |
Disabling the PathFollower stops it from sending any commands to the robot. It says, "Take your hands off the wheel!". No commands can be send until it is re-enabled.
| void orca::PathFollower2d::subscribe | ( | PathFollower2dConsumer * | subscriber | ) | throw ( SubscriptionFailedException) |
Mimics IceStorm's subscribe(). The implementation may choose to implement the push directly or use IceStorm. This choice is transparent to the subscriber.
| subscriber | The subscriber's proxy. |
| void orca::PathFollower2d::unsubscribe | ( | PathFollower2dConsumer * | subscriber | ) |
Unsubscribe the given [subscriber].
| subscriber | The proxy of an existing subscriber. |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)
1.4.5