Esempio n. 1
0
    public bool enableMotors(bool enable)
    {
        if (!init)
        {
            return(false);
        }
        EnableMotors srv = new EnableMotors();

        srv.req.enable = enable;
        return(motorEnableService.call(srv));
    }
Esempio n. 2
0
    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));
    }