libfranka  0.8.0
FCI C++ API
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  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], ...}. More...
 

Detailed Description

Contains the franka::RobotState types.

Function Documentation

◆ operator<<()

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