dynamixel_interface_main.cpp
Go to the documentation of this file.
1 
52 #include <ros/ros.h>
53 
55 int main(int argc, char **argv)
56 {
57  // ros initialise
58  ros::init(argc, argv, "dynamixel_interface_node");
59 
60  // create controller
62 
63  // parse params
64  if (!controller.parseParameters())
65  {
66  return 1;
67  }
68 
69  // intialise
70  if (!controller.initialise())
71  {
72  return 2;
73  }
74 
75  // initialise rate controller
76  ros::Rate rate(controller.getLoopRate());
77 
78  // Loop and process
79  while (ros::ok())
80  {
81  controller.loop();
82 
83  ros::spinOnce();
84  rate.sleep();
85  }
86 
87  return 0;
88 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Defines the dynamixel controller class and the types used therein.
int main(int argc, char **argv)
main
ROSCPP_DECL bool ok()
ROSCPP_DECL void spinOnce()


dynamixel_interface
Author(s): Tom Molnar
autogenerated on Mon Feb 28 2022 22:15:51