set_gyro_noise_client.cpp
Go to the documentation of this file.
1 #include "ros/ros.h"
2 #include "microstrain_mips/SetGyroNoise.h"
3 #include <cstdlib>
4 
5 
6 int main(int argc, char **argv){
7 
8  ros::init(argc, argv, "set_gyro_noise_client");
9 
11  ros::ServiceClient client = n.serviceClient<microstrain_mips::SetGyroNoise>("SetGyroNoise");
12  microstrain_mips::SetGyroNoise srv;
13 
14  srv.request.noise.x = atoll(argv[1]);
15  srv.request.noise.y = atoll(argv[2]);
16  srv.request.noise.z = atoll(argv[3]);
17 
18  if (client.call(srv))
19  {
20  if (srv.response.success)
21  {
22  ROS_INFO("success");
23  }
24  }
25  else
26  {
27  ROS_INFO("Failed to call service");
28  }
29  return 0;
30 }
int main(int argc, char **argv)
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
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