set_accel_bias_model_client.cpp
Go to the documentation of this file.
1 #include "ros/ros.h"
2 #include "microstrain_mips/SetAccelBiasModel.h"
3 #include <cstdlib>
4 
5 
6 int main(int argc, char **argv){
7 
8  ros::init(argc, argv, "set_accel_bias_model_client");
9 
11  ros::ServiceClient client = n.serviceClient<microstrain_mips::SetAccelBiasModel>("SetAccelBiasModel");
12  microstrain_mips::SetAccelBiasModel srv;
13 
14  srv.request.noise_vector.x = atoll(argv[1]);
15  srv.request.noise_vector.y = atoll(argv[2]);
16  srv.request.noise_vector.z = atoll(argv[3]);
17  srv.request.beta_vector.x = atoll(argv[1]);
18  srv.request.beta_vector.y = atoll(argv[2]);
19  srv.request.beta_vector.z = atoll(argv[3]);
20 
21  if (client.call(srv))
22  {
23  if (srv.response.success)
24  {
25  ROS_INFO("success");
26  }
27  }
28  else
29  {
30  ROS_INFO("Failed to call service");
31  }
32  return 0;
33 }
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
int main(int argc, char **argv)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool call(MReq &req, MRes &res)
#define ROS_INFO(...)


microstrain_mips
Author(s): Brian Bingham
autogenerated on Sun Dec 22 2019 03:54:45