calibrate.cpp
Go to the documentation of this file.
1 
9 #include <ros/ros.h>
10 
12 // #include <ros_marty/marty_core.hpp>
13 
14 int main(int argc, char** argv) {
15  ros::init(argc, argv, "calibration");
16  ros::NodeHandle nh("");
17  ros::Rate r(50);
18 
19  bool launched(false);
20  nh.getParam("launched", launched);
21  if (!launched) {
22  ROS_ERROR("Please use 'roslaunch ros_marty calibration.launch' to calibrate\n");
23  } else {
24  Calibration calibration(nh);
25  while (ros::ok()) {
26  calibration.calibrate();
27  ros::spinOnce();
28  r.sleep();
29  }
30  }
31  ros::shutdown();
32  return 0;
33 }
void calibrate()
Definition: calibration.cpp:53
int main(int argc, char **argv)
Definition: calibrate.cpp:14
Calibration class for calibrating Marty&#39;s servos.


ros_marty
Author(s): Alejandro Bordallo
autogenerated on Fri Jul 21 2017 14:51:45