libfranka 0.15.0
FCI C++ API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
franka::JointPositions Class Reference

Stores values for joint position motion generation. More...

#include <control_types.h>

Inheritance diagram for franka::JointPositions:
Inheritance graph
[legend]
Collaboration diagram for franka::JointPositions:
Collaboration graph
[legend]

Public Member Functions

 JointPositions (const std::array< double, 7 > &joint_positions) noexcept
 Creates a new JointPositions instance.
 
 JointPositions (std::initializer_list< double > joint_positions)
 Creates a new JointPositions instance.
 

Public Attributes

std::array< double, 7 > q {}
 Desired joint angles in [rad].
 
- Public Attributes inherited from franka::Finishable
bool motion_finished = false
 Determines whether to finish a currently running motion.
 

Detailed Description

Stores values for joint position motion generation.

Examples
generate_joint_position_motion.cpp, and generate_joint_position_motion_external_control_loop.cpp.

Constructor & Destructor Documentation

◆ JointPositions() [1/2]

franka::JointPositions::JointPositions ( const std::array< double, 7 > &  joint_positions)
noexcept

Creates a new JointPositions instance.

Parameters
[in]joint_positionsDesired joint angles in \([rad]\).

◆ JointPositions() [2/2]

franka::JointPositions::JointPositions ( std::initializer_list< double >  joint_positions)

Creates a new JointPositions instance.

Parameters
[in]joint_positionsDesired joint angles in \([rad]\).
Exceptions
std::invalid_argumentif the given initializer list has an invalid number of arguments.

The documentation for this class was generated from the following file: