Public Member Functions | Protected Attributes | List of all members
ShapeAction Class Reference

Public Member Functions

void controlCB (const turtlesim::Pose::ConstPtr &msg)
 
void goalCB ()
 
void preemptCB ()
 
 ShapeAction (std::string name)
 
 ~ShapeAction (void)
 

Protected Attributes

std::string action_name_
 
double apothem_
 
actionlib::SimpleActionServer< turtle_actionlib::ShapeAction > as_
 
geometry_msgs::Twist command_
 
double dis_error_
 
int edge_progress_
 
int edges_
 
double interior_angle_
 
ros::NodeHandle nh_
 
ros::Publisher pub_
 
double radius_
 
turtle_actionlib::ShapeResult result_
 
double side_len_
 
bool start_edge_
 
double start_theta_
 
double start_x_
 
double start_y_
 
ros::Subscriber sub_
 
double theta_error_
 

Detailed Description

Definition at line 12 of file shape_server.cpp.

Constructor & Destructor Documentation

◆ ShapeAction()

ShapeAction::ShapeAction ( std::string  name)
inline

Definition at line 15 of file shape_server.cpp.

◆ ~ShapeAction()

ShapeAction::~ShapeAction ( void  )
inline

Definition at line 30 of file shape_server.cpp.

Member Function Documentation

◆ controlCB()

void ShapeAction::controlCB ( const turtlesim::Pose::ConstPtr &  msg)
inline

Definition at line 61 of file shape_server.cpp.

◆ goalCB()

void ShapeAction::goalCB ( )
inline

Definition at line 34 of file shape_server.cpp.

◆ preemptCB()

void ShapeAction::preemptCB ( )
inline

Definition at line 54 of file shape_server.cpp.

Member Data Documentation

◆ action_name_

std::string ShapeAction::action_name_
protected

Definition at line 123 of file shape_server.cpp.

◆ apothem_

double ShapeAction::apothem_
protected

Definition at line 124 of file shape_server.cpp.

◆ as_

actionlib::SimpleActionServer<turtle_actionlib::ShapeAction> ShapeAction::as_
protected

Definition at line 122 of file shape_server.cpp.

◆ command_

geometry_msgs::Twist ShapeAction::command_
protected

Definition at line 129 of file shape_server.cpp.

◆ dis_error_

double ShapeAction::dis_error_
protected

Definition at line 126 of file shape_server.cpp.

◆ edge_progress_

int ShapeAction::edge_progress_
protected

Definition at line 127 of file shape_server.cpp.

◆ edges_

int ShapeAction::edges_
protected

Definition at line 127 of file shape_server.cpp.

◆ interior_angle_

double ShapeAction::interior_angle_
protected

Definition at line 124 of file shape_server.cpp.

◆ nh_

ros::NodeHandle ShapeAction::nh_
protected

Definition at line 121 of file shape_server.cpp.

◆ pub_

ros::Publisher ShapeAction::pub_
protected

Definition at line 132 of file shape_server.cpp.

◆ radius_

double ShapeAction::radius_
protected

Definition at line 124 of file shape_server.cpp.

◆ result_

turtle_actionlib::ShapeResult ShapeAction::result_
protected

Definition at line 130 of file shape_server.cpp.

◆ side_len_

double ShapeAction::side_len_
protected

Definition at line 124 of file shape_server.cpp.

◆ start_edge_

bool ShapeAction::start_edge_
protected

Definition at line 128 of file shape_server.cpp.

◆ start_theta_

double ShapeAction::start_theta_
protected

Definition at line 125 of file shape_server.cpp.

◆ start_x_

double ShapeAction::start_x_
protected

Definition at line 125 of file shape_server.cpp.

◆ start_y_

double ShapeAction::start_y_
protected

Definition at line 125 of file shape_server.cpp.

◆ sub_

ros::Subscriber ShapeAction::sub_
protected

Definition at line 131 of file shape_server.cpp.

◆ theta_error_

double ShapeAction::theta_error_
protected

Definition at line 126 of file shape_server.cpp.


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


turtle_actionlib
Author(s): Melonee Wise
autogenerated on Wed Mar 2 2022 00:05:51