vrpn_tracker_node.cpp
Go to the documentation of this file.
1 
33 
34 #include <string>
35 
36 int main(int argc, char **argv)
37 {
38  ros::init(argc, argv, "vrpn_tracker_node");
39  ros::NodeHandle nh, private_nh("~");
40 
41  std::string tracker_name;
42  if (!private_nh.getParam("tracker_name", tracker_name))
43  {
44  ROS_FATAL_STREAM("Must provide paramter tracker_name for node " << private_nh.getNamespace());
45  }
46 
47  std::string host = vrpn_client_ros::VrpnClientRos::getHostStringFromParams(private_nh);
48  vrpn_client_ros::VrpnTrackerRos tracker(tracker_name, host, nh);
49 
50  ros::spin();
51  return 0;
52 }
int main(int argc, char **argv)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
static std::string getHostStringFromParams(ros::NodeHandle host_nh)
ROSCPP_DECL void spin(Spinner &spinner)
#define ROS_FATAL_STREAM(args)
const std::string & getNamespace() const
bool getParam(const std::string &key, std::string &s) const


vrpn_client_ros
Author(s): Paul Bovbel
autogenerated on Sat Jun 8 2019 04:44:59