public bool enableMotors(bool enable) { if (!init) { return(false); } EnableMotors srv = new EnableMotors(); srv.req.enable = enable; return(motorEnableService.call(srv)); }
public bool enableMotors(bool enable) { // if ( !motorEnableService ) // if (!motorEnableService.waitForExistence(Duration(5.0))) // { // ROS.Warn("Motor enable service not found"); // return false; // } EnableMotors srv = new EnableMotors(); srv.req.enable = enable; return(motorEnableService.call(srv)); }