libfranka
0.14.1
FCI C++ API
Toggle main menu visibility
Loading...
Searching...
No Matches
include
franka
active_torque_control.h
Go to the documentation of this file.
1
// Copyright (c) 2023 Franka Robotics GmbH
2
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
3
#pragma once
4
5
#include "
active_control.h
"
6
11
12
namespace
franka {
13
21
class
ActiveTorqueControl :
public
ActiveControl
{
22
public
:
32
void
writeOnce
(
const
Torques
& control_input)
override
;
33
39
friend
class
Robot
;
40
41
private
:
50
ActiveTorqueControl(std::shared_ptr<Robot::Impl>
robot_impl
,
51
uint32_t
motion_id
,
52
std::unique_lock<std::mutex>
control_lock
)
53
:
ActiveControl
(std::move(
robot_impl
),
motion_id
, std::move(
control_lock
)){};
54
};
55
56
}
// namespace franka
active_control.h
Implements the ActiveControlBase abstract class.
franka::ActiveControl::motion_id
uint32_t motion_id
motion id of running motion
Definition
active_control.h:84
franka::ActiveControl::ActiveControl
ActiveControl(std::shared_ptr< Robot::Impl > robot_impl, uint32_t motion_id, std::unique_lock< std::mutex > control_lock)
Construct a new ActiveControl object.
franka::ActiveControl::robot_impl
std::shared_ptr< Robot::Impl > robot_impl
shared pointer to Robot::Impl instance for read and write accesses
Definition
active_control.h:81
franka::ActiveControl::control_lock
std::unique_lock< std::mutex > control_lock
control-lock preventing parallel control processes
Definition
active_control.h:87
franka::ActiveTorqueControl::Robot
friend class Robot
franka::Robot as friend to allow construction of ActiveTorqueControl in startTorqueControl methods
Definition
active_torque_control.h:39
franka::ActiveTorqueControl::writeOnce
void writeOnce(const Torques &control_input) override
Updates the joint-level based torque commands of an active joint effort control.
franka::Torques
Stores joint-level torque commands without gravity and friction.
Definition
control_types.h:45
Generated by
1.17.0