libfranka
0.14.1
FCI C++ API
Toggle main menu visibility
Loading...
Searching...
No Matches
include
franka
active_motion_generator.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
template
<
typename
MotionGeneratorType>
22
class
ActiveMotionGenerator :
public
ActiveControl
{
23
public
:
36
void
writeOnce
(
const
MotionGeneratorType& motion_generator_input,
37
const
std::optional<const Torques>& control_input)
override
;
43
friend
class
Robot
;
44
45
private
:
55
ActiveMotionGenerator(std::shared_ptr<Robot::Impl>
robot_impl
,
56
uint32_t
motion_id
,
57
std::unique_lock<std::mutex>
control_lock
,
58
research_interface::robot::Move::ControllerMode controller_type)
59
:
ActiveControl
(
robot_impl
,
motion_id
, std::move(
control_lock
)),
60
controller_type_(controller_type){};
61
62
bool
isTorqueControlFinished(
const
std::optional<const Torques>& control_input);
63
64
research_interface::robot::Move::ControllerMode controller_type_;
65
};
66
}
// 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::ActiveMotionGenerator::Robot
friend class Robot
franka::Robot as friend to allow construction of ActiveMotionGenerator<MotionGeneratorType> in start<...
Definition
active_motion_generator.h:43
franka::ActiveMotionGenerator::writeOnce
void writeOnce(const MotionGeneratorType &motion_generator_input, const std::optional< const Torques > &control_input) override
Updates the motion generator commands of an active control.
Generated by
1.17.0