libfranka  0.8.0
FCI C++ API
Public Member Functions | Public Attributes | List of all members
franka::ControlException Struct Reference

ControlException is thrown if an error occurs during motion generation or torque control. More...

#include <exception.h>

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

Public Member Functions

 ControlException (const std::string &what, std::vector< franka::Record > log={}) noexcept
 Creates the exception with an explanatory string and a Log object. More...
 

Public Attributes

const std::vector< franka::Recordlog
 Vector of states and commands logged just before the exception occured.
 

Detailed Description

ControlException is thrown if an error occurs during motion generation or torque control.

The exception holds a vector with the last received robot states. The number of recorded states can be configured in the Robot constructor.

Examples:
generate_consecutive_motions.cpp, and motion_with_control.cpp.

Constructor & Destructor Documentation

◆ ControlException()

franka::ControlException::ControlException ( const std::string &  what,
std::vector< franka::Record log = {} 
)
explicitnoexcept

Creates the exception with an explanatory string and a Log object.

Parameters
[in]whatExplanatory string.
[in]logVector of last received states and commands.

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