00001 #include "trajectory_force_capture_alg_node.h" 00002 00003 TrajectoryForceCaptureAlgNode::TrajectoryForceCaptureAlgNode(void) : 00004 algorithm_base::IriBaseAlgorithm<TrajectoryForceCaptureAlgorithm>() 00005 { 00006 //init class attributes if necessary 00007 //this->loop_rate_ = 2;//in [Hz] 00008 00009 // [init publishers] 00010 00011 // [init subscribers] 00012 00013 // [init services] 00014 00015 // [init clients] 00016 00017 // [init action servers] 00018 00019 // [init action clients] 00020 } 00021 00022 TrajectoryForceCaptureAlgNode::~TrajectoryForceCaptureAlgNode(void) 00023 { 00024 // [free dynamic memory] 00025 } 00026 00027 void TrajectoryForceCaptureAlgNode::mainNodeThread(void) 00028 { 00029 // [fill msg structures] 00030 00031 // [fill srv structure and make request to the server] 00032 00033 // [fill action structure and make request to the action server] 00034 00035 // [publish messages] 00036 } 00037 00038 /* [subscriber callbacks] */ 00039 00040 /* [service callbacks] */ 00041 00042 /* [action callbacks] */ 00043 00044 /* [action requests] */ 00045 00046 void TrajectoryForceCaptureAlgNode::node_config_update(Config &config, uint32_t level) 00047 { 00048 this->alg_.lock(); 00049 00050 this->alg_.unlock(); 00051 } 00052 00053 void TrajectoryForceCaptureAlgNode::addNodeDiagnostics(void) 00054 { 00055 } 00056 00057 /* main function */ 00058 int main(int argc,char *argv[]) 00059 { 00060 return algorithm_base::main<TrajectoryForceCaptureAlgNode>(argc, argv, "trajectory_force_capture_alg_node"); 00061 }