Builder creating a trajectory stopping the robot. More...
#include <stop_trajectory_builder.h>
Public Member Functions | |
bool | buildTrajectory (Trajectory *hold_traj) override |
Creates a trajectory which reaches the settle position in a fixed time. More... | |
StopTrajectoryBuilder (const typename Segment::Time &stop_traj_duration, const typename Segment::State &hold_state) | |
Public Member Functions inherited from joint_trajectory_controller::TrajectoryBuilder< SegmentImpl > | |
virtual void | reset () |
Ensures re-usability by allowing the user to reset members of the builder which should be reset between calls to buildTrajectory(). More... | |
TrajectoryBuilder< SegmentImpl > * | setGoalHandle (RealtimeGoalHandlePtr &goal_handle) |
Set the goal handle that will be attached to the trajectory segments. More... | |
TrajectoryBuilder< SegmentImpl > * | setStartTime (const typename Segment::Time &start_time) |
Set the start time [seconds] of the trajectory to be built. More... | |
virtual | ~TrajectoryBuilder ()=default |
Virtual destructor because this class is a base class. More... | |
Private Types | |
using | RealtimeGoalHandle = realtime_tools::RealtimeServerGoalHandle< control_msgs::FollowJointTrajectoryAction > |
using | RealtimeGoalHandlePtr = boost::shared_ptr< RealtimeGoalHandle > |
using | Segment = JointTrajectorySegment< SegmentImpl > |
using | Trajectory = std::vector< TrajectoryPerJoint > |
using | TrajectoryPerJoint = std::vector< Segment > |
Private Attributes | |
Segment::State | hold_end_state_ {typename Segment::State(1)} |
Segment::State | hold_start_state_ {typename Segment::State(1)} |
const Segment::State & | hold_state_ |
Stores a reference to the state where the stop motion shall start. More... | |
const Segment::Time | stop_traj_duration_ |
Additional Inherited Members | |
Protected Member Functions inherited from joint_trajectory_controller::TrajectoryBuilder< SegmentImpl > | |
RealtimeGoalHandlePtr | createGoalHandlePtr () const |
Return the set goal handle or a default one, if no goal handle was set. More... | |
const boost::optional< typename Segment::Time > & | getStartTime () const |
Return the set start time. More... | |
Static Protected Member Functions inherited from joint_trajectory_controller::TrajectoryBuilder< SegmentImpl > | |
static RealtimeGoalHandlePtr | createDefaultGoalHandle () |
static bool | isTrajectoryValid (const Trajectory *trajectory, const unsigned int expected_number_of_joints, const unsigned int expected_number_of_segments) |
Check if the elements of a given trajectory are sized properly. More... | |
Builder creating a trajectory stopping the robot.
Definition at line 42 of file stop_trajectory_builder.h.
|
private |
Definition at line 49 of file stop_trajectory_builder.h.
|
private |
Definition at line 50 of file stop_trajectory_builder.h.
|
private |
Definition at line 45 of file stop_trajectory_builder.h.
|
private |
Definition at line 47 of file stop_trajectory_builder.h.
|
private |
Definition at line 46 of file stop_trajectory_builder.h.
joint_trajectory_controller::StopTrajectoryBuilder< SegmentImpl >::StopTrajectoryBuilder | ( | const typename Segment::Time & | stop_traj_duration, |
const typename Segment::State & | hold_state | ||
) |
stop_traj_duration | Desired time span [seconds] in which the settle position has to be reached. |
hold_state | Reference to the state where the stop motion shall start. |
Definition at line 90 of file stop_trajectory_builder.h.
|
overridevirtual |
Creates a trajectory which reaches the settle position in a fixed time.
The calculation is done as follows:
Implements joint_trajectory_controller::TrajectoryBuilder< SegmentImpl >.
Definition at line 98 of file stop_trajectory_builder.h.
|
private |
Definition at line 86 of file stop_trajectory_builder.h.
|
private |
Definition at line 85 of file stop_trajectory_builder.h.
|
private |
Stores a reference to the state where the stop motion shall start.
Definition at line 82 of file stop_trajectory_builder.h.
|
private |
Definition at line 80 of file stop_trajectory_builder.h.