44 int main(
int argc,
char** argv)
46 ros::init(argc, argv,
"evaluate_state_operations_speed");
54 moveit::core::RobotModelConstPtr robot_model = rml.
getModel();
57 static const int N = 10000;
60 printf(
"Evaluating model '%s' using %d trials for each test\n", robot_model->getName().c_str(), N);
65 printf(
"Evaluating FK Default ...\n");
66 for (
int i = 0; i < N; ++i)
74 printf(
"Evaluating FK Random ...\n");
75 for (
int i = 0; i < N; ++i)
84 printf(
"Evaluating Copy State ...\n");
85 for (
int i = 0; i < N; ++i)
92 printf(
"Evaluating Free State ...\n");
93 for (
int i = 0; i < N; ++i)
100 const std::vector<std::string>& groups = robot_model->getJointModelGroupNames();
101 for (
const std::string& group : groups)
106 printf(
"%s: Evaluating FK Random ...\n", group.c_str());
107 std::string pname = group +
":FK Random";
108 for (
int i = 0; i < N; ++i)
121 ROS_ERROR(
"Unable to initialize robot model.");