Public Member Functions | Private Member Functions | Private Attributes | List of all members
TrajectoryFollower Class Reference

#include <trajectory_follower.h>

Inheritance diagram for TrajectoryFollower:
Inheritance graph
[legend]

Public Member Functions

bool execute (std::array< double, 6 > &positions)
 
bool execute (std::vector< TrajectoryPoint > &trajectory, std::atomic< bool > &interrupt)
 
bool start ()
 
void stop ()
 
 TrajectoryFollower (URCommander &commander, std::string &reverse_ip, int reverse_port, bool version_3)
 
virtual ~TrajectoryFollower ()
 
- Public Member Functions inherited from ActionTrajectoryFollowerInterface
virtual ~ActionTrajectoryFollowerInterface ()
 

Private Member Functions

template<typename T >
size_t append (uint8_t *buffer, T &val)
 
bool execute (std::array< double, 6 > &positions, bool keep_alive)
 
double interpolate (double t, double T, double p0_pos, double p1_pos, double p0_vel, double p1_vel)
 

Private Attributes

URCommandercommander_
 
std::array< double, 6 > last_positions_
 
std::string program_
 
std::atomic< bool > running_
 
URServer server_
 
double servoj_gain_
 
double servoj_lookahead_time_
 
double servoj_time_
 

Detailed Description

Definition at line 36 of file trajectory_follower.h.

Constructor & Destructor Documentation

TrajectoryFollower::TrajectoryFollower ( URCommander commander,
std::string &  reverse_ip,
int  reverse_port,
bool  version_3 
)

Definition at line 86 of file trajectory_follower.cpp.

virtual TrajectoryFollower::~TrajectoryFollower ( )
inlinevirtual

Definition at line 66 of file trajectory_follower.h.

Member Function Documentation

template<typename T >
size_t TrajectoryFollower::append ( uint8_t *  buffer,
T &  val 
)
inlineprivate

Definition at line 48 of file trajectory_follower.h.

bool TrajectoryFollower::execute ( std::array< double, 6 > &  positions,
bool  keep_alive 
)
private

Definition at line 144 of file trajectory_follower.cpp.

bool TrajectoryFollower::execute ( std::array< double, 6 > &  positions)

Definition at line 181 of file trajectory_follower.cpp.

bool TrajectoryFollower::execute ( std::vector< TrajectoryPoint > &  trajectory,
std::atomic< bool > &  interrupt 
)
virtual

Implements ActionTrajectoryFollowerInterface.

Definition at line 186 of file trajectory_follower.cpp.

double TrajectoryFollower::interpolate ( double  t,
double  T,
double  p0_pos,
double  p1_pos,
double  p0_vel,
double  p1_vel 
)
private

Definition at line 171 of file trajectory_follower.cpp.

bool TrajectoryFollower::start ( )
virtual

Implements ActionTrajectoryFollowerInterface.

Definition at line 119 of file trajectory_follower.cpp.

void TrajectoryFollower::stop ( )
virtual

Implements ActionTrajectoryFollowerInterface.

Definition at line 251 of file trajectory_follower.cpp.

Member Data Documentation

URCommander& TrajectoryFollower::commander_
private

Definition at line 41 of file trajectory_follower.h.

std::array<double, 6> TrajectoryFollower::last_positions_
private

Definition at line 40 of file trajectory_follower.h.

std::string TrajectoryFollower::program_
private

Definition at line 45 of file trajectory_follower.h.

std::atomic<bool> TrajectoryFollower::running_
private

Definition at line 39 of file trajectory_follower.h.

URServer TrajectoryFollower::server_
private

Definition at line 42 of file trajectory_follower.h.

double TrajectoryFollower::servoj_gain_
private

Definition at line 44 of file trajectory_follower.h.

double TrajectoryFollower::servoj_lookahead_time_
private

Definition at line 44 of file trajectory_follower.h.

double TrajectoryFollower::servoj_time_
private

Definition at line 44 of file trajectory_follower.h.


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


ur_modern_driver
Author(s): Thomas Timm Andersen, Simon Rasmussen
autogenerated on Fri Jun 26 2020 03:37:01