#include <RosTaxelsTransformNode.h>
Definition at line 34 of file RosTaxelsTransformNode.h.
Definition at line 231 of file RosTaxelsTransformNode.cpp.
m3::RosTaxelsTransformNode::~RosTaxelsTransformNode | ( | ) | [virtual] |
Definition at line 235 of file RosTaxelsTransformNode.cpp.
void m3::RosTaxelsTransformNode::CalibrateBias | ( | std::vector< int > | values | ) | [protected] |
Update the average biases with the new values
values | An array of raw taxel values |
Definition at line 162 of file RosTaxelsTransformNode.cpp.
m3skin_ros::RawTaxelArray m3::RosTaxelsTransformNode::FilterRaw | ( | const m3skin_ros::RawTaxelArray::ConstPtr & | msg | ) | [protected, virtual] |
Filter the raw taxels array messages
msg | The input message to filter |
Definition at line 39 of file RosTaxelsTransformNode.cpp.
tf::Transform m3::RosTaxelsTransformNode::GeometryTransformToTf | ( | geometry_msgs::Transform & | gtf | ) | [protected] |
Converts a geometry_msgs/Transform to a tf::Transform
gtf | The geometry_msgs/Transform |
Definition at line 95 of file RosTaxelsTransformNode.cpp.
void m3::RosTaxelsTransformNode::GetLinkName | ( | ) | [protected] |
Fetches the link name The link name will be stored inside this object.
Definition at line 137 of file RosTaxelsTransformNode.cpp.
void m3::RosTaxelsTransformNode::GetTaxelTransforms | ( | ) | [protected] |
Fetches all the taxels tfs from the /skin_patch_forearm_right/taxels/srv/local_coord_frames service The transforms will be stored inside this object.
Definition at line 110 of file RosTaxelsTransformNode.cpp.
double m3::RosTaxelsTransformNode::GetUnbiased | ( | unsigned | value, |
unsigned | index | ||
) | [private] |
Definition at line 27 of file RosTaxelsTransformNode.cpp.
void m3::RosTaxelsTransformNode::Init | ( | unsigned | calibration_samples = 0 | ) |
Initialize the ROS node.
calibration_samples | The number of samples to collect before passing on the data If set to 0, no calibration phase will be carried on. |
Definition at line 197 of file RosTaxelsTransformNode.cpp.
void m3::RosTaxelsTransformNode::InitStaticVectors | ( | ) | [private] |
Initialize the centers and normals vectors
Definition at line 126 of file RosTaxelsTransformNode.cpp.
Definition at line 158 of file RosTaxelsTransformNode.cpp.
void m3::RosTaxelsTransformNode::SetCalibrateMode | ( | bool | on | ) |
Set the calibration mode to on or off.
on | True if is calibrating, False otherwise After being call, a calibration flag will be set and whenever a new message will be received, the calibration biases will be updated for each taxel. |
Definition at line 149 of file RosTaxelsTransformNode.cpp.
void m3::RosTaxelsTransformNode::TransformMessage | ( | const m3skin_ros::RawTaxelArray::ConstPtr & | msg | ) | [protected] |
Publishes a TaxelArray message from the RawTaxelArray message
msg | The RawTaxeArray message to transform |
Definition at line 53 of file RosTaxelsTransformNode.cpp.
std::vector<double> m3::RosTaxelsTransformNode::biases [private] |
Definition at line 127 of file RosTaxelsTransformNode.h.
bool m3::RosTaxelsTransformNode::calibrating [private] |
Definition at line 130 of file RosTaxelsTransformNode.h.
std::vector<tf::Vector3> m3::RosTaxelsTransformNode::centers [private] |
Definition at line 124 of file RosTaxelsTransformNode.h.
Definition at line 122 of file RosTaxelsTransformNode.h.
Definition at line 119 of file RosTaxelsTransformNode.h.
std::string m3::RosTaxelsTransformNode::linkName [private] |
Definition at line 132 of file RosTaxelsTransformNode.h.
Definition at line 118 of file RosTaxelsTransformNode.h.
const double m3::RosTaxelsTransformNode::MAX_VALUE = 30 [static] |
Definition at line 60 of file RosTaxelsTransformNode.h.
ros::NodeHandle m3::RosTaxelsTransformNode::n [private] |
Definition at line 115 of file RosTaxelsTransformNode.h.
std::vector<tf::Vector3> m3::RosTaxelsTransformNode::normals [private] |
Definition at line 125 of file RosTaxelsTransformNode.h.
unsigned m3::RosTaxelsTransformNode::number_samples [private] |
Definition at line 128 of file RosTaxelsTransformNode.h.
unsigned m3::RosTaxelsTransformNode::number_samples_target [private] |
Definition at line 129 of file RosTaxelsTransformNode.h.
const unsigned m3::RosTaxelsTransformNode::number_taxels = 384 [static, private] |
Definition at line 134 of file RosTaxelsTransformNode.h.
Definition at line 116 of file RosTaxelsTransformNode.h.
Definition at line 117 of file RosTaxelsTransformNode.h.
std::vector<geometry_msgs::Transform> m3::RosTaxelsTransformNode::transforms [private] |
Definition at line 121 of file RosTaxelsTransformNode.h.