#include <uos_rotunit_snapshotter.h>
Public Member Functions | |
RotunitSnapshotter (ros::NodeHandle &nh, std::string) | |
Private Member Functions | |
bool | checkIfFinished (double rot, ros::Time stamp) |
int | getIndex (const sensor_msgs::JointState::ConstPtr &jointState) |
void | makeSnapshot (const uos_rotunit_snapshotter::RotunitSnapshotGoalConstPtr &goal) |
double | norm2PI (double angle) |
void | rotCallback (const sensor_msgs::JointState::ConstPtr &jointState) |
Private Attributes | |
std::string | action_name_ |
double | begin_angle |
ros::Time | begin_stamp |
ros::ServiceClient | client_ |
ros::Publisher | cloud_pub_ |
boost::condition_variable | condition_ |
bool | continuous |
double | destination_rot |
double | end_angle |
ros::Time | end_stamp |
bool | finished_ |
boost::mutex | mutex_ |
ros::NodeHandle | nh_ |
double | previous_rot |
double | residual_rot |
uos_rotunit_snapshotter::RotunitSnapshotResult | result_ |
double | rotation_angle |
Server | server_ |
ros::Publisher | snapshot_pub_ |
bool | started_ |
ros::Subscriber | state_sub_ |
Definition at line 47 of file uos_rotunit_snapshotter.h.
RotunitSnapshotter::RotunitSnapshotter | ( | ros::NodeHandle & | nh, |
std::string | action_name | ||
) |
Definition at line 26 of file uos_rotunit_snapshotter.cpp.
bool RotunitSnapshotter::checkIfFinished | ( | double | rot, |
ros::Time | stamp | ||
) | [private] |
Definition at line 64 of file uos_rotunit_snapshotter.cpp.
int RotunitSnapshotter::getIndex | ( | const sensor_msgs::JointState::ConstPtr & | jointState | ) | [private] |
Definition at line 55 of file uos_rotunit_snapshotter.cpp.
void RotunitSnapshotter::makeSnapshot | ( | const uos_rotunit_snapshotter::RotunitSnapshotGoalConstPtr & | goal | ) | [private] |
Definition at line 95 of file uos_rotunit_snapshotter.cpp.
double RotunitSnapshotter::norm2PI | ( | double | angle | ) | [private] |
Definition at line 47 of file uos_rotunit_snapshotter.cpp.
void RotunitSnapshotter::rotCallback | ( | const sensor_msgs::JointState::ConstPtr & | jointState | ) | [private] |
Definition at line 106 of file uos_rotunit_snapshotter.cpp.
std::string RotunitSnapshotter::action_name_ [private] |
Definition at line 70 of file uos_rotunit_snapshotter.h.
double RotunitSnapshotter::begin_angle [private] |
Definition at line 57 of file uos_rotunit_snapshotter.h.
ros::Time RotunitSnapshotter::begin_stamp [private] |
Definition at line 55 of file uos_rotunit_snapshotter.h.
Definition at line 77 of file uos_rotunit_snapshotter.h.
ros::Publisher RotunitSnapshotter::cloud_pub_ [private] |
Definition at line 78 of file uos_rotunit_snapshotter.h.
boost::condition_variable RotunitSnapshotter::condition_ [private] |
Definition at line 63 of file uos_rotunit_snapshotter.h.
bool RotunitSnapshotter::continuous [private] |
Definition at line 68 of file uos_rotunit_snapshotter.h.
double RotunitSnapshotter::destination_rot [private] |
Definition at line 66 of file uos_rotunit_snapshotter.h.
double RotunitSnapshotter::end_angle [private] |
Definition at line 58 of file uos_rotunit_snapshotter.h.
ros::Time RotunitSnapshotter::end_stamp [private] |
Definition at line 56 of file uos_rotunit_snapshotter.h.
bool RotunitSnapshotter::finished_ [private] |
Definition at line 61 of file uos_rotunit_snapshotter.h.
boost::mutex RotunitSnapshotter::mutex_ [private] |
Definition at line 62 of file uos_rotunit_snapshotter.h.
ros::NodeHandle RotunitSnapshotter::nh_ [private] |
Definition at line 76 of file uos_rotunit_snapshotter.h.
double RotunitSnapshotter::previous_rot [private] |
Definition at line 64 of file uos_rotunit_snapshotter.h.
double RotunitSnapshotter::residual_rot [private] |
Definition at line 65 of file uos_rotunit_snapshotter.h.
uos_rotunit_snapshotter::RotunitSnapshotResult RotunitSnapshotter::result_ [private] |
Definition at line 82 of file uos_rotunit_snapshotter.h.
double RotunitSnapshotter::rotation_angle [private] |
Definition at line 67 of file uos_rotunit_snapshotter.h.
Server RotunitSnapshotter::server_ [private] |
Definition at line 81 of file uos_rotunit_snapshotter.h.
Definition at line 79 of file uos_rotunit_snapshotter.h.
bool RotunitSnapshotter::started_ [private] |
Definition at line 60 of file uos_rotunit_snapshotter.h.
Definition at line 80 of file uos_rotunit_snapshotter.h.