src
shutdown.cpp
Go to the documentation of this file.
1
#include "
ros/ros.h
"
2
#include "muse_v2_driver/Shutdown.h"
3
4
int
main
(
int
argc,
char
** argv)
5
{
6
ros::init
(argc, argv,
"shutdown"
);
7
8
ros::NodeHandle
n;
9
10
ros::ServiceClient
client = n.
serviceClient
<muse_v2_driver::Shutdown>(
"shutdown"
);
11
12
muse_v2_driver::Shutdown srv;
13
14
srv.request.
shutdown
=
true
;
15
16
client.
call
(srv);
17
ROS_INFO
(
"Shutdown: true"
);
18
19
return
0;
20
}
ros::init
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ros.h
ros::NodeHandle::serviceClient
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
ros::ServiceClient::shutdown
void shutdown()
ros::ServiceClient
main
int main(int argc, char **argv)
Definition:
shutdown.cpp:4
ros::ServiceClient::call
bool call(const MReq &req, MRes &resp, const std::string &service_md5sum)
ROS_INFO
#define ROS_INFO(...)
ros::NodeHandle
muse_v2_driver
Author(s): Elisa Tosello
, Roberto Bortoletto
autogenerated on Thu Jan 20 2022 03:24:53