IRI ROS Specific Algorithm Class. More...
#include <kinton_vs_control_alg_node.h>
IRI ROS Specific Algorithm Class.
Definition at line 55 of file kinton_vs_control_alg_node.h.
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
Definition at line 3 of file kinton_vs_control_alg_node.cpp.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 68 of file kinton_vs_control_alg_node.cpp.
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
void KintonVsControlAlgNode::addNodeDiagnostics | ( | void | ) | [protected, virtual] |
node add diagnostics
In this abstract function additional ROS diagnostics applied to the specific algorithms may be added.
Implements algorithm_base::IriBaseAlgorithm< KintonVsControlAlgorithm >.
void KintonVsControlAlgNode::addNodeDiagnostics | ( | void | ) | [protected, virtual] |
node add diagnostics
In this abstract function additional ROS diagnostics applied to the specific algorithms may be added.
Implements algorithm_base::IriBaseAlgorithm< KintonVsControlAlgorithm >.
Definition at line 370 of file kinton_vs_control_alg_node.cpp.
Eigen::MatrixXd KintonVsControlAlgNode::cam_to_quad_vel | ( | ) | [protected] |
Reduce velocity vector from 6DOF to 4DOF.
Reduce the numf. of DOF using the quadrotor Jacobian
Eigen::MatrixXd KintonVsControlAlgNode::cam_to_quad_vel | ( | ) | [protected] |
Reduce velocity vector from 6DOF to 4DOF.
Reduce the numf. of DOF using the quadrotor Jacobian
Definition at line 242 of file kinton_vs_control_alg_node.cpp.
void KintonVsControlAlgNode::cam_vel_callback | ( | const geometry_msgs::TwistWithCovariance::ConstPtr & | msg | ) | [private] |
void KintonVsControlAlgNode::cam_vel_callback | ( | const geometry_msgs::TwistWithCovariance::ConstPtr & | msg | ) | [private] |
Definition at line 145 of file kinton_vs_control_alg_node.cpp.
Eigen::Matrix4d KintonVsControlAlgNode::getTransform | ( | const tf::StampedTransform & | transform | ) | [protected] |
Get transform matrix.
From TransformStamped to Eigen 4x4
Eigen::Matrix4d KintonVsControlAlgNode::getTransform | ( | const tf::StampedTransform & | transform | ) | [protected] |
Get transform matrix.
From TransformStamped to Eigen 4x4
Definition at line 288 of file kinton_vs_control_alg_node.cpp.
void KintonVsControlAlgNode::ll_status_callback | ( | const asctec_msgs::LLStatus::ConstPtr & | msg | ) | [private] |
Definition at line 192 of file kinton_vs_control_alg_node.cpp.
void KintonVsControlAlgNode::mainNodeThread | ( | void | ) | [protected, virtual] |
main node thread
This is the main thread node function. Code written here will be executed in every node loop while the algorithm is on running state. Loop frequency can be tuned by modifying loop_rate attribute.
Here data related to the process loop or to ROS topics (mainly data structs related to the MSG and SRV files) must be updated. ROS publisher objects must publish their data in this process. ROS client servers may also request data to the corresponding server topics.
Implements algorithm_base::IriBaseAlgorithm< KintonVsControlAlgorithm >.
void KintonVsControlAlgNode::mainNodeThread | ( | void | ) | [protected, virtual] |
main node thread
This is the main thread node function. Code written here will be executed in every node loop while the algorithm is on running state. Loop frequency can be tuned by modifying loop_rate attribute.
Here data related to the process loop or to ROS topics (mainly data structs related to the MSG and SRV files) must be updated. ROS publisher objects must publish their data in this process. ROS client servers may also request data to the corresponding server topics.
Implements algorithm_base::IriBaseAlgorithm< KintonVsControlAlgorithm >.
Definition at line 73 of file kinton_vs_control_alg_node.cpp.
void KintonVsControlAlgNode::node_config_update | ( | Config & | config, |
uint32_t | level | ||
) | [protected, virtual] |
dynamic reconfigure server callback
This method is called whenever a new configuration is received through the dynamic reconfigure. The derivated generic algorithm class must implement it.
config | an object with new configuration from all algorithm parameters defined in the config file. |
level | integer referring the level in which the configuration has been changed. |
Implements algorithm_base::IriBaseAlgorithm< KintonVsControlAlgorithm >.
void KintonVsControlAlgNode::node_config_update | ( | Config & | config, |
uint32_t | level | ||
) | [protected, virtual] |
dynamic reconfigure server callback
This method is called whenever a new configuration is received through the dynamic reconfigure. The derivated generic algorithm class must implement it.
config | an object with new configuration from all algorithm parameters defined in the config file. |
level | integer referring the level in which the configuration has been changed. |
Implements algorithm_base::IriBaseAlgorithm< KintonVsControlAlgorithm >.
Definition at line 340 of file kinton_vs_control_alg_node.cpp.
void KintonVsControlAlgNode::odom_callback | ( | const nav_msgs::Odometry::ConstPtr & | msg | ) | [private] |
void KintonVsControlAlgNode::odom_callback | ( | const nav_msgs::Odometry::ConstPtr & | msg | ) | [private] |
Definition at line 176 of file kinton_vs_control_alg_node.cpp.
Eigen::MatrixXd KintonVsControlAlgNode::signal_adapt | ( | const Eigen::MatrixXd & | cmd_raw | ) | [protected] |
Signal adaptation.
Trimmers (roll and pitch) and saturations
Definition at line 312 of file kinton_vs_control_alg_node.cpp.
bool KintonVsControlAlgNode::activate_ [private] |
Definition at line 88 of file kinton_vs_control_alg_node.h.
std_msgs::Bool KintonVsControlAlgNode::Bool_msg_ [private] |
Definition at line 70 of file kinton_vs_control_alg_node.h.
Eigen::MatrixXd KintonVsControlAlgNode::cam_twist_ [private] |
Definition at line 86 of file kinton_vs_control_alg_node.h.
CMutex KintonVsControlAlgNode::cam_vel_mutex_ [private] |
Definition at line 76 of file kinton_vs_control_alg_node.h.
Definition at line 74 of file kinton_vs_control_alg_node.h.
Definition at line 63 of file kinton_vs_control_alg_node.h.
Definition at line 62 of file kinton_vs_control_alg_node.h.
Definition at line 65 of file kinton_vs_control_alg_node.h.
Definition at line 64 of file kinton_vs_control_alg_node.h.
Definition at line 67 of file kinton_vs_control_alg_node.h.
Definition at line 66 of file kinton_vs_control_alg_node.h.
geometry_msgs::Twist KintonVsControlAlgNode::cmd_vel_ [private] |
Definition at line 56 of file kinton_vs_control_sim_alg_node.h.
Definition at line 55 of file kinton_vs_control_sim_alg_node.h.
Definition at line 61 of file kinton_vs_control_alg_node.h.
Definition at line 60 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::ctrl_ref_ [private] |
Definition at line 94 of file kinton_vs_control_alg_node.h.
bool KintonVsControlAlgNode::estop_ [private] |
Definition at line 89 of file kinton_vs_control_alg_node.h.
Definition at line 69 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::height_ [private] |
Definition at line 93 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::height_fix_ [private] |
Definition at line 93 of file kinton_vs_control_alg_node.h.
CMutex KintonVsControlAlgNode::ll_status_mutex_ [private] |
Definition at line 84 of file kinton_vs_control_alg_node.h.
Definition at line 82 of file kinton_vs_control_alg_node.h.
bool KintonVsControlAlgNode::marker_ctrl_ [private] |
Definition at line 91 of file kinton_vs_control_alg_node.h.
Definition at line 99 of file kinton_vs_control_alg_node.h.
Definition at line 99 of file kinton_vs_control_alg_node.h.
Definition at line 99 of file kinton_vs_control_alg_node.h.
Definition at line 99 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::nm_pitch_kd_ [private] |
Definition at line 95 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::nm_pitch_kp_ [private] |
Definition at line 95 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::nm_roll_kd_ [private] |
Definition at line 95 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::nm_roll_kp_ [private] |
Definition at line 95 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::nm_thrust_kd_ [private] |
Definition at line 95 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::nm_thrust_kp_ [private] |
Definition at line 95 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::nm_yaw_kd_ [private] |
Definition at line 95 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::nm_yaw_kp_ [private] |
Definition at line 95 of file kinton_vs_control_alg_node.h.
CMutex KintonVsControlAlgNode::odom_mutex_ [private] |
Definition at line 80 of file kinton_vs_control_alg_node.h.
Definition at line 78 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::pitch_ [private] |
Definition at line 73 of file kinton_vs_control_sim_alg_node.h.
Eigen::MatrixXd KintonVsControlAlgNode::quad_twist_ [private] |
Definition at line 70 of file kinton_vs_control_sim_alg_node.h.
double KintonVsControlAlgNode::roll_ [private] |
Definition at line 73 of file kinton_vs_control_sim_alg_node.h.
double KintonVsControlAlgNode::rollpitch_sat_max_ [private] |
Definition at line 94 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::rollpitch_sat_min_ [private] |
Definition at line 94 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::sat_max_ [private] |
Definition at line 94 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::sat_min_ [private] |
Definition at line 94 of file kinton_vs_control_alg_node.h.
bool KintonVsControlAlgNode::serial_ [private] |
Definition at line 90 of file kinton_vs_control_alg_node.h.
Eigen::Matrix4d KintonVsControlAlgNode::T_quad_to_cam_ [private] |
Definition at line 101 of file kinton_vs_control_alg_node.h.
ros::Time KintonVsControlAlgNode::time_ [private] |
Definition at line 96 of file kinton_vs_control_alg_node.h.
ros::Time KintonVsControlAlgNode::time_last_ [private] |
Definition at line 96 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::trimm_x_ [private] |
Definition at line 94 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::trimm_y_ [private] |
Definition at line 94 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::yaw_sat_max_ [private] |
Definition at line 94 of file kinton_vs_control_alg_node.h.
double KintonVsControlAlgNode::yaw_sat_min_ [private] |
Definition at line 94 of file kinton_vs_control_alg_node.h.