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

#include <RosReflexxesPositionInterface.h>

Inheritance diagram for RosReflexxesPositionInterface:
Inheritance graph
[legend]

Public Member Functions

void advance_reflexxes ()
 
std::vector< double > get_current_acceleration () override
 
std::vector< double > get_current_position () override
 
RMLPositionInputParameters get_current_state ()
 
std::vector< double > get_current_velocity () override
 
std::vector< double > get_target_command () override
 
std::vector< double > get_target_position ()
 
ros::Duration get_time_to_target_completedness ()
 
bool init (ros::NodeHandle nh) override
 
void reset_to_previous_state (RMLPositionInputParameters previous_state)
 
 RosReflexxesPositionInterface ()
 
 RosReflexxesPositionInterface (ros::NodeHandle nh)
 
 RosReflexxesPositionInterface (std::string nh)
 
void set_target_command (const std::vector< double > &command) override
 
void set_target_position (const std::vector< double > &t_pos) override
 
void set_target_velocity (const std::vector< double > &t_vel) override
 
void starting (const std::vector< double > &c_pos) override
 
std::vector< double > update () override
 
virtual ~RosReflexxesPositionInterface ()
 
- Public Member Functions inherited from RosReflexxesInterface
std::vector< double > update (const std::vector< double > &command)
 
virtual ~RosReflexxesInterface ()
 

Private Member Functions

bool load_parameters (std::string ns)
 

Private Attributes

RMLPositionFlags flags_
 
boost::shared_ptr< RMLPositionInputParametersinput_params_
 
std::vector< double > max_acceleration_
 
std::vector< double > max_jerk_
 
std::vector< double > max_velocities_
 
int n_dim_ = 0
 
ros::NodeHandle nh_
 
boost::shared_ptr< RMLPositionOutputParametersoutput_params_
 
double period_ = 0
 
bool position_initialized_ = false
 
boost::shared_ptr< ReflexxesAPIrml_
 

Detailed Description

Definition at line 12 of file RosReflexxesPositionInterface.h.

Constructor & Destructor Documentation

RosReflexxesPositionInterface::RosReflexxesPositionInterface ( )
inline

Definition at line 39 of file RosReflexxesPositionInterface.h.

virtual RosReflexxesPositionInterface::~RosReflexxesPositionInterface ( )
inlinevirtual

Definition at line 40 of file RosReflexxesPositionInterface.h.

RosReflexxesPositionInterface::RosReflexxesPositionInterface ( ros::NodeHandle  nh)
inline

Definition at line 41 of file RosReflexxesPositionInterface.h.

RosReflexxesPositionInterface::RosReflexxesPositionInterface ( std::string  nh)
inline

Definition at line 42 of file RosReflexxesPositionInterface.h.

Member Function Documentation

void RosReflexxesPositionInterface::advance_reflexxes ( )

Definition at line 103 of file RosReflexxesPositionInterface.cpp.

std::vector< double > RosReflexxesPositionInterface::get_current_acceleration ( )
overridevirtual

Implements RosReflexxesInterface.

Definition at line 126 of file RosReflexxesPositionInterface.cpp.

std::vector< double > RosReflexxesPositionInterface::get_current_position ( )
overridevirtual

getter

Implements RosReflexxesInterface.

Definition at line 144 of file RosReflexxesPositionInterface.cpp.

RMLPositionInputParameters RosReflexxesPositionInterface::get_current_state ( )

This getter is given in order to copy and store the current state of reflexxes, in order to be able to reset to a previous state if desired using the stored states retrieved by this function.

Returns
reflexxes input parameters

Definition at line 168 of file RosReflexxesPositionInterface.cpp.

std::vector< double > RosReflexxesPositionInterface::get_current_velocity ( )
overridevirtual

Implements RosReflexxesInterface.

Definition at line 135 of file RosReflexxesPositionInterface.cpp.

std::vector<double> RosReflexxesPositionInterface::get_target_command ( )
inlineoverridevirtual

make ros interface generic

Implements RosReflexxesInterface.

Definition at line 48 of file RosReflexxesPositionInterface.h.

std::vector< double > RosReflexxesPositionInterface::get_target_position ( )

Definition at line 153 of file RosReflexxesPositionInterface.cpp.

ros::Duration RosReflexxesPositionInterface::get_time_to_target_completedness ( )

Definition at line 173 of file RosReflexxesPositionInterface.cpp.

bool RosReflexxesPositionInterface::init ( ros::NodeHandle  nh)
overridevirtual

ros methods

Implements RosReflexxesInterface.

Definition at line 5 of file RosReflexxesPositionInterface.cpp.

bool RosReflexxesPositionInterface::load_parameters ( std::string  ns)
private

Definition at line 30 of file RosReflexxesPositionInterface.cpp.

void RosReflexxesPositionInterface::reset_to_previous_state ( RMLPositionInputParameters  previous_state)

Definition at line 120 of file RosReflexxesPositionInterface.cpp.

void RosReflexxesPositionInterface::set_target_command ( const std::vector< double > &  command)
inlineoverridevirtual

Implements RosReflexxesInterface.

Definition at line 52 of file RosReflexxesPositionInterface.h.

void RosReflexxesPositionInterface::set_target_position ( const std::vector< double > &  t_pos)
overridevirtual

Implements RosReflexxesInterface.

Definition at line 182 of file RosReflexxesPositionInterface.cpp.

void RosReflexxesPositionInterface::set_target_velocity ( const std::vector< double > &  t_vel)
overridevirtual

Implements RosReflexxesInterface.

Definition at line 193 of file RosReflexxesPositionInterface.cpp.

void RosReflexxesPositionInterface::starting ( const std::vector< double > &  c_pos)
overridevirtual

Implements RosReflexxesInterface.

Definition at line 92 of file RosReflexxesPositionInterface.cpp.

std::vector< double > RosReflexxesPositionInterface::update ( )
overridevirtual

Implements RosReflexxesInterface.

Definition at line 115 of file RosReflexxesPositionInterface.cpp.

Member Data Documentation

RMLPositionFlags RosReflexxesPositionInterface::flags_
private

Definition at line 24 of file RosReflexxesPositionInterface.h.

boost::shared_ptr<RMLPositionInputParameters> RosReflexxesPositionInterface::input_params_
private

Definition at line 25 of file RosReflexxesPositionInterface.h.

std::vector<double> RosReflexxesPositionInterface::max_acceleration_
private

Definition at line 20 of file RosReflexxesPositionInterface.h.

std::vector<double> RosReflexxesPositionInterface::max_jerk_
private

Definition at line 21 of file RosReflexxesPositionInterface.h.

std::vector<double> RosReflexxesPositionInterface::max_velocities_
private

Definition at line 19 of file RosReflexxesPositionInterface.h.

int RosReflexxesPositionInterface::n_dim_ = 0
private

Definition at line 17 of file RosReflexxesPositionInterface.h.

ros::NodeHandle RosReflexxesPositionInterface::nh_
private

Definition at line 15 of file RosReflexxesPositionInterface.h.

boost::shared_ptr<RMLPositionOutputParameters> RosReflexxesPositionInterface::output_params_
private

Definition at line 26 of file RosReflexxesPositionInterface.h.

double RosReflexxesPositionInterface::period_ = 0
private

Definition at line 18 of file RosReflexxesPositionInterface.h.

bool RosReflexxesPositionInterface::position_initialized_ = false
private

Definition at line 28 of file RosReflexxesPositionInterface.h.

boost::shared_ptr<ReflexxesAPI> RosReflexxesPositionInterface::rml_
private

Definition at line 27 of file RosReflexxesPositionInterface.h.


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


ros_reflexxes
Author(s):
autogenerated on Sat Nov 21 2020 03:17:43