Main Page
Namespaces
Classes
Files
File List
File Members
ros_marty
src
calibrate.cpp
Go to the documentation of this file.
1
9
#include <ros/ros.h>
10
11
#include <
ros_marty/calibration.hpp
>
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
}
Calibration::calibrate
void calibrate()
Definition:
calibration.cpp:53
main
int main(int argc, char **argv)
Definition:
calibrate.cpp:14
Calibration
Definition:
calibration.hpp:30
calibration.hpp
Calibration class for calibrating Marty's servos.
ros_marty
Author(s): Alejandro Bordallo
autogenerated on Fri Jul 21 2017 14:51:45