set_complementary_filter_client.cpp
Go to the documentation of this file.
1 #include "ros/ros.h"
2 #include "microstrain_mips/SetComplementaryFilter.h"
3 
4 
5 int main(int argc, char **argv){
6 
7  ros::init(argc, argv, "set_complementary_filter_client");
8 
10  ros::ServiceClient client = n.serviceClient<microstrain_mips::SetComplementaryFilter>("SetComplementaryFilter");
11  microstrain_mips::SetComplementaryFilter srv;
12 
13  srv.request.north_comp_enable = atoll(argv[1]);
14  srv.request.up_comp_enable = atoll(argv[2]);
15  srv.request.north_comp_time_const = atoll(argv[3]);
16  srv.request.up_comp_time_const = atoll(argv[4]);
17 
18 
19  if (client.call(srv))
20  {
21  if (srv.response.success)
22  {
23  ROS_INFO("success");
24  }
25  }
26  else
27  {
28  ROS_INFO("Failed to call service");
29  }
30  return 0;
31 }
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)
int main(int argc, char **argv)
#define ROS_INFO(...)


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