gauss 机械臂示教模式切换

  //示教模式切换
  teaching = value => {
    this.setState({
      teachStatus: value
    });
    let status;
    if (value) {
      status = 1;
    } else {
      status = 0;
    }
    let network = new Networking();
    network.callService(
      "/gauss/activate_learning_mode",
      "gauss_msgs/SetInt",
      {
        value: status
      },
      function(result) {
        if (result.status === 200) {
          result.status = 1;
          inputLog(result);
        }
      }
    );
  };

你可能感兴趣的:(机器人,机械臂,ros,ros,gauss,机械臂)