Public Member Functions | Private Attributes | List of all members
ros_control_boilerplate::CSVToController Class Reference

#include <csv_to_controller.h>

Public Member Functions

 CSVToController (const std::string &joint_trajectory_action, const std::string &controller_state_topic)
 Constructor. More...
 
void loadAndRunCSV (const std::string &file_name)
 
void printPoint (trajectory_msgs::JointTrajectoryPoint &point)
 
void stateCB (const control_msgs::JointTrajectoryControllerState::ConstPtr &state)
 Callback from ROS message. More...
 

Private Attributes

std::string controller_state_topic_
 
control_msgs::JointTrajectoryControllerState current_state_
 
std::string file_name_
 
actionlib::SimpleActionClient< control_msgs::FollowJointTrajectoryAction > joint_trajectory_action_
 
ros::NodeHandle nh_
 
ros::Subscriber state_sub_
 

Detailed Description

Definition at line 57 of file csv_to_controller.h.

Constructor & Destructor Documentation

ros_control_boilerplate::CSVToController::CSVToController ( const std::string &  joint_trajectory_action,
const std::string &  controller_state_topic 
)

Constructor.

Definition at line 53 of file csv_to_controller.cpp.

Member Function Documentation

void ros_control_boilerplate::CSVToController::loadAndRunCSV ( const std::string &  file_name)

Definition at line 86 of file csv_to_controller.cpp.

void ros_control_boilerplate::CSVToController::printPoint ( trajectory_msgs::JointTrajectoryPoint &  point)

Definition at line 78 of file csv_to_controller.cpp.

void ros_control_boilerplate::CSVToController::stateCB ( const control_msgs::JointTrajectoryControllerState::ConstPtr &  state)

Callback from ROS message.

Definition at line 72 of file csv_to_controller.cpp.

Member Data Documentation

std::string ros_control_boilerplate::CSVToController::controller_state_topic_
private

Definition at line 86 of file csv_to_controller.h.

control_msgs::JointTrajectoryControllerState ros_control_boilerplate::CSVToController::current_state_
private

Definition at line 89 of file csv_to_controller.h.

std::string ros_control_boilerplate::CSVToController::file_name_
private

Definition at line 85 of file csv_to_controller.h.

actionlib::SimpleActionClient<control_msgs::FollowJointTrajectoryAction> ros_control_boilerplate::CSVToController::joint_trajectory_action_
private

Definition at line 82 of file csv_to_controller.h.

ros::NodeHandle ros_control_boilerplate::CSVToController::nh_
private

Definition at line 76 of file csv_to_controller.h.

ros::Subscriber ros_control_boilerplate::CSVToController::state_sub_
private

Definition at line 79 of file csv_to_controller.h.


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


ros_control_boilerplate
Author(s): Dave Coleman
autogenerated on Thu Feb 25 2021 03:58:54