35 #include <gtkmm/application.h>
38 #include <ros/xmlrpc_manager.h>
54 if (params.getType() == XmlRpc::XmlRpcValue::TypeArray)
55 num_params = params.size();
58 std::string reason = params[1];
59 ROS_WARN(
"Shutdown request received. Reason: [%s]", reason.c_str());
63 result = ros::xmlrpc::responseInt(1,
"", 0);
66 int main(
int argc,
char**argv)
68 ros::init(argc,argv,
"manager_gui",ros::init_options::NoSigintHandler);
72 ros::XMLRPCManager::instance()->unbind(
"shutdown");
75 Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv,
"org.gtkmm.example");
void shutdownCallback(XmlRpc::XmlRpcValue ¶ms, XmlRpc::XmlRpcValue &result)
int main(int argc, char **argv)
Atlascar Manager GUI class declaration.
sig_atomic_t volatile request_shutdown