Program Listing for File active_torque_control.h

Return to documentation for file (include/franka/active_torque_control.h)

// Copyright (c) 2023 Franka Robotics GmbH
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
#pragma once

#include "active_control.h"

namespace franka {

class ActiveTorqueControl : public ActiveControl {
 public:
  void writeOnce(const Torques& control_input) override;

  friend class Robot;

 private:
  ActiveTorqueControl(std::shared_ptr<Robot::Impl> robot_impl,
                      uint32_t motion_id,
                      std::unique_lock<std::mutex> control_lock)
      : ActiveControl(std::move(robot_impl), motion_id, std::move(control_lock)){};
};

}  // namespace franka