CAN_compatibility_arm_node.cpp
Go to the documentation of this file.
1 
30 #include <ros/ros.h>
31 
32 #include <boost/thread/thread.hpp>
33 #include <boost/smart_ptr.hpp>
34 
35 #include "sr_hand/sr_subscriber.h"
36 #include "sr_hand/sr_publisher.h"
38 
39 using ros::NodeHandle;
43 
45 // MAIN //
47 
49 {
50  while (ok())
51  {
52  shadowarm_pub->publish();
53  }
54 }
55 
56 
68 int main(int argc, char **argv)
69 {
70  ros::init(argc, argv, "shadowarm");
71  NodeHandle n;
72 
74  boost::shared_ptr <SRSubscriber> shadowarm_subscriber(new SRSubscriber(can_sa));
75 
76  boost::shared_ptr <SRPublisher> shadowarm_pub(new SRPublisher(can_sa));
77 
78  boost::thread
79  thrd2(boost::bind(&run_publisher, shadowarm_pub));
80  thrd2.join();
81 
82  return 0;
83 }
void run_publisher(boost::shared_ptr< SRPublisher > shadowarm_pub)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
This class reads and publishes data concerning the shadowhand / shadowarm. To publish those data...
This compatibility interface is a wrapper around the new CAN Hand ROS driver. It is used to present t...
int main(int argc, char **argv)
This ROS subscriber is used to issue commands to the hand / arm, from sending a set of targets...
This compatibility interface is a wrapper around the new CAN Hand ROS driver. It is used to present t...


sr_hand
Author(s): Ugo Cupcic
autogenerated on Tue Oct 13 2020 03:55:53