libfranka
0.14.1
FCI C++ API
Toggle main menu visibility
Loading...
Searching...
No Matches
include
franka
gripper_state.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 <cstdint>
6
#include <ostream>
7
8
#include <
franka/duration.h
>
9
14
15
namespace
franka {
16
20
struct
GripperState
{
24
double
width
{};
25
33
double
max_width
{};
34
38
bool
is_grasped
{};
39
43
uint16_t
temperature
{};
44
48
Duration
time
{};
49
};
50
59
std::ostream&
operator<<
(std::ostream& ostream,
const
franka::GripperState
& gripper_state);
60
61
}
// namespace franka
franka::Duration
Represents a duration with millisecond resolution.
Definition
duration.h:19
duration.h
Contains the franka::Duration type.
franka::operator<<
std::ostream & operator<<(std::ostream &ostream, const Errors &errors)
Streams the errors as JSON array.
franka::GripperState
Describes the gripper state.
Definition
gripper_state.h:20
franka::GripperState::time
Duration time
Strictly monotonically increasing timestamp since robot start.
Definition
gripper_state.h:48
franka::GripperState::is_grasped
bool is_grasped
Indicates whether an object is currently grasped.
Definition
gripper_state.h:38
franka::GripperState::temperature
uint16_t temperature
Current gripper temperature.
Definition
gripper_state.h:43
franka::GripperState::max_width
double max_width
Maximum gripper opening width.
Definition
gripper_state.h:33
franka::GripperState::width
double width
Current gripper opening width.
Definition
gripper_state.h:24
Generated by
1.17.0