libfranka 0.15.0
FCI C++ API
|
An example showing how to generate a joint pose motion to a goal position. More...
#include <examples_common.h>
Public Member Functions | |
MotionGenerator (double speed_factor, const std::array< double, 7 > q_goal) | |
Creates a new MotionGenerator instance for a target q. | |
franka::JointPositions | operator() (const franka::RobotState &robot_state, franka::Duration period) |
Sends joint position calculations. | |
An example showing how to generate a joint pose motion to a goal position.
Adapted from: Wisama Khalil and Etienne Dombre. 2002. Modeling, Identification and Control of Robots (Kogan Page Science Paper edition).
MotionGenerator::MotionGenerator | ( | double | speed_factor, |
const std::array< double, 7 > | q_goal | ||
) |
Creates a new MotionGenerator instance for a target q.
[in] | speed_factor | General speed factor in range [0, 1]. |
[in] | q_goal | Target joint positions. |
franka::JointPositions MotionGenerator::operator() | ( | const franka::RobotState & | robot_state, |
franka::Duration | period | ||
) |
Sends joint position calculations.
[in] | robot_state | Current state of the robot. |
[in] | period | Duration of execution. |