libfranka 0.15.0
FCI C++ API
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
robot_state.h File Reference

Contains the franka::RobotState types. More...

#include <array>
#include <ostream>
#include <franka/duration.h>
#include <franka/errors.h>
Include dependency graph for robot_state.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  franka::RobotState
 Describes the robot state. More...
 

Enumerations

enum class  franka::RobotMode {
  kOther , kIdle , kMove , kGuiding ,
  kReflex , kUserStopped , kAutomaticErrorRecovery
}
 Describes the robot's current mode.
 

Functions

std::ostream & franka::operator<< (std::ostream &ostream, const franka::RobotState &robot_state)
 Streams the robot state as JSON object: {"field_name_1": [0,0,0,0,0,0,0], "field_name_2": [0,0,0,0,0,0], ...}.
 
std::ostream & franka::operator<< (std::ostream &ostream, RobotMode robot_mode)
 Streams RobotMode in human-readable form.
 

Detailed Description

Contains the franka::RobotState types.

Function Documentation

◆ operator<<() [1/2]

std::ostream & franka::operator<< ( std::ostream &  ostream,
const franka::RobotState robot_state 
)

Streams the robot state as JSON object: {"field_name_1": [0,0,0,0,0,0,0], "field_name_2": [0,0,0,0,0,0], ...}.

Parameters
[in]ostreamOstream instance
[in]robot_stateRobotState instance to stream
Returns
Ostream instance

◆ operator<<() [2/2]

std::ostream & franka::operator<< ( std::ostream &  ostream,
RobotMode  robot_mode 
)

Streams RobotMode in human-readable form.

Parameters
[in]ostreamOstream instance
[in]robot_modeRobotMode to stream
Returns
Ostream instance