libfranka 0.15.0
FCI C++ API
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1// Copyright (c) 2023 Franka Robotics GmbH
2// Use of this source code is governed by the Apache-2.0 license, see LICENSE
3#pragma once
4
5#include <vector>
6
9
15namespace franka {
16
24 JointPositions joint_positions{0, 0, 0, 0, 0, 0, 0};
28 JointVelocities joint_velocities{0, 0, 0, 0, 0, 0, 0};
32 CartesianPose cartesian_pose{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1};
40 Torques torques{0, 0, 0, 0, 0, 0, 0};
41};
42
58
69std::string logToCSV(const std::vector<Record>& log);
70} // namespace franka
Stores values for Cartesian pose motion generation.
Definition control_types.h:127
Stores values for Cartesian velocity motion generation.
Definition control_types.h:211
Stores values for joint position motion generation.
Definition control_types.h:72
Stores values for joint velocity motion generation.
Definition control_types.h:99
Stores joint-level torque commands without gravity and friction.
Definition control_types.h:45
Contains helper types for returning motion generation and joint-level torque commands.
std::string logToCSV(const std::vector< Record > &log)
Writes the log to a string in CSV format.
Contains the franka::RobotState types.
One row of the log contains a robot command of timestamp n and a corresponding robot state of timesta...
Definition log.h:48
RobotState state
Robot state of timestamp n+1.
Definition log.h:52
RobotCommand command
Robot command of timestamp n, after rate limiting (if activated).
Definition log.h:56
Command sent to the robot.
Definition log.h:20
JointVelocities joint_velocities
sent to the robot.
Definition log.h:28
CartesianVelocities cartesian_velocities
sent to the robot.
Definition log.h:36
JointPositions joint_positions
sent to the robot.
Definition log.h:24
Torques torques
sent to the robot.
Definition log.h:40
CartesianPose cartesian_pose
sent to the robot.
Definition log.h:32
Describes the robot state.
Definition robot_state.h:34