log.h
Go to the documentation of this file.
1 // Copyright (c) 2017 Franka Emika 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 
7 #include <franka/control_types.h>
8 #include <franka/robot_state.h>
9 
15 namespace franka {
16 
20 struct RobotCommand {
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 
48 struct Record {
57 };
58 
69 std::string logToCSV(const std::vector<Record>& log);
70 } // namespace franka
Stores values for joint velocity motion generation.
Definition: control_types.h:99
CartesianVelocities cartesian_velocities
sent to the robot.
Definition: log.h:36
Stores values for Cartesian velocity motion generation.
std::string logToCSV(const std::vector< Record > &log)
Writes the log to a string in CSV format.
JointPositions joint_positions
sent to the robot.
Definition: log.h:24
Contains helper types for returning motion generation and joint-level torque commands.
Stores joint-level torque commands without gravity and friction.
Definition: control_types.h:45
Torques torques
sent to the robot.
Definition: log.h:40
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
Stores values for Cartesian pose motion generation.
Contains the franka::RobotState types.
Command sent to the robot.
Definition: log.h:20
Stores values for joint position motion generation.
Definition: control_types.h:72
Describes the robot state.
Definition: robot_state.h:35
One row of the log contains a robot command of timestamp n and a corresponding robot state of timesta...
Definition: log.h:48
JointVelocities joint_velocities
sent to the robot.
Definition: log.h:28
CartesianPose cartesian_pose
sent to the robot.
Definition: log.h:32


libfranka
Author(s): Franka Emika GmbH
autogenerated on Tue Jul 9 2019 03:32:01