libfranka  0.8.0
FCI C++ API
vacuum_gripper_state.h
Go to the documentation of this file.
1 // Copyright (c) 2019 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 <cstdint>
6 #include <ostream>
7 #include <string>
8 
9 #include <franka/duration.h>
10 
16 namespace franka {
17 
21 enum class VacuumGripperDeviceStatus : uint8_t {
22  kGreen,
23  kYellow,
24  kOrange,
25  kRed
26 };
27 
35  bool in_control_range{};
36 
40  bool part_detached{};
41 
45  bool part_present{};
46 
50  VacuumGripperDeviceStatus device_status{};
51 
55  uint16_t actual_power{};
56 
60  uint16_t vacuum{};
61 
65  Duration time{};
66 };
67 
77 std::ostream& operator<<(std::ostream& ostream,
78  const franka::VacuumGripperState& vacuum_gripper_state);
79 
80 } // namespace franka
VacuumGripperDeviceStatus
Vacuum gripper device status.
Definition: vacuum_gripper_state.h:21
std::ostream & operator<<(std::ostream &ostream, const Errors &errors)
Streams the errors as JSON array.
Represents a duration with millisecond resolution.
Definition: duration.h:19
Definition: command_types.h:13
Contains the franka::Duration type.
Describes the vacuum gripper state.
Definition: vacuum_gripper_state.h:31