control_mode.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // Copyright 2021 FZI Forschungszentrum Informatik
5 // Created on behalf of Universal Robots A/S
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 // http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
18 // -- END LICENSE BLOCK ------------------------------------------------
19 
20 //----------------------------------------------------------------------
27 //----------------------------------------------------------------------
28 
29 #ifndef UR_CLIENT_LIBRARY_CONTROL_MODE_H_INCLUDED
30 #define UR_CLIENT_LIBRARY_CONTROL_MODE_H_INCLUDED
31 
32 namespace urcl
33 {
34 namespace comm
35 {
39 enum class ControlMode : int32_t
40 {
41  MODE_STOPPED = -2,
42  MODE_UNINITIALIZED = -1,
43  MODE_IDLE = 0,
44  MODE_SERVOJ = 1,
45  MODE_SPEEDJ = 2,
46  MODE_FORWARD = 3,
47  MODE_SPEEDL = 4,
48  MODE_POSE = 5,
49  MODE_FREEDRIVE = 6,
51  7
52 };
53 } // namespace comm
54 } // namespace urcl
55 
56 #endif // ifndef UR_CLIENT_LIBRARY_CONTROL_MODE_H_INCLUDED
Set when speedj control is active.
Set when trajectory forwarding is active.
Set when no controller is currently active controlling the robot.
Set when freedrive mode is active.
Set when servoj control is active.
ControlMode
Control modes as interpreted from the script runnning on the robot.
Definition: control_mode.h:39
When this is set, the program is expected to stop and exit.
Startup default until another mode is sent to the script.
Used only internally in the script, when robot is in tool contact, clear by endToolContact() ...
Set when cartesian velocity control is active.
Set when cartesian pose control is active.


ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Tue Jul 4 2023 02:09:47