loadscene.cpp
Go to the documentation of this file.
00001 #include <ros/ros.h>
00002 #include <openraveros/env_loadscene.h>
00003 
00004 int main(int argc, char **argv)
00005 {
00006     ros::init(argc, argv, "openraveclient");
00007     ros::NodeHandle n;
00008     ros::ServiceClient client = n.serviceClient<openraveros::env_loadscene>("openrave/env_loadscene");
00009     openraveros::env_loadscene srv;
00010     srv.request.filename = "data/lab1.env.xml";
00011     srv.request.resetscene = 1;
00012     if( !client.call(srv) ) {
00013         ROS_ERROR("Failed to call service env_loadscene");
00014         return 1;
00015     }
00016     return 0;
00017 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


openraveros_tutorials
Author(s): Rosen Diankov
autogenerated on Sun Mar 24 2013 07:12:45