|
trajectory_follower
|
#include <TrajectoryFollower.hpp>
Public Member Functions | |
| TrajectoryFollower () | |
| TrajectoryFollower (const FollowerConfig &followerConfig) | |
| void | setNewTrajectory (const SubTrajectory &trajectory, const base::Pose &robotPose) |
| void | removeTrajectory () |
| FollowerStatus | traverseTrajectory (Motion2D &motionCmd, const base::Pose &robotPose) |
| void | computeErrors (const base::Pose &robotPose) |
| const FollowerData & | getData () |
| bool | checkTurnOnSpot () |
TrajectoryFollower class combines reference pose finder and trajectory controller
| TrajectoryFollower::TrajectoryFollower | ( | ) |
Default constructor
| TrajectoryFollower::TrajectoryFollower | ( | const FollowerConfig & | followerConfig | ) |
Contructor which takes in config.
Before using the follower make sure that the object is created using the correct config and this contructor, otherwise the controller will cause runtime error
| bool TrajectoryFollower::checkTurnOnSpot | ( | ) |
| void TrajectoryFollower::computeErrors | ( | const base::Pose & | robotPose | ) |
Computes the reference pose and the error relative to this pose
|
inline |
Returns the current follower data
|
inline |
Marks the current trajectory as traversed
Stops the current trajectory following and removes the trajectory
| void TrajectoryFollower::setNewTrajectory | ( | const SubTrajectory & | trajectory, |
| const base::Pose & | robotPose | ||
| ) |
Sets a new trajectory
Here it checks for the initial stability of the trajectory
| FollowerStatus TrajectoryFollower::traverseTrajectory | ( | Motion2D & | motionCmd, |
| const base::Pose & | robotPose | ||
| ) |
Generates motion commands that should make the robot follow the trajectory
< Sets limits on rotational velocity
1.8.11