speed_scaling_interface.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 2019 FZI Forschungszentrum Informatik
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 // You may obtain a copy of the License at
9 //
10 // http://www.apache.org/licenses/LICENSE-2.0
11 //
12 // Unless required by applicable law or agreed to in writing, software
13 // distributed under the License is distributed on an "AS IS" BASIS,
14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 // See the License for the specific language governing permissions and
16 // limitations under the License.
17 // -- END LICENSE BLOCK ------------------------------------------------
18 
19 //----------------------------------------------------------------------
26 //----------------------------------------------------------------------
27 
28 #ifndef UR_CONTROLLERS_SPEED_SCALING_INTERFACE_H_INCLUDED
29 #define UR_CONTROLLERS_SPEED_SCALING_INTERFACE_H_INCLUDED
30 
32 
33 namespace ur_controllers
34 {
36 {
37 public:
39  SpeedScalingHandle(const std::string& name, const double* scaling_factor)
40  : name_(name), scaling_factor_(scaling_factor){};
41  virtual ~SpeedScalingHandle() = default;
42 
43  std::string getName() const
44  {
45  return name_;
46  }
47 
48  const double* getScalingFactor() const
49  {
50  return scaling_factor_;
51  }
52 
53 private:
54  std::string name_;
55  const double* scaling_factor_;
56 };
59 {
60 };
61 } // namespace ur_controllers
62 
63 #endif // ifndef UR_CONTROLLERS_SPEED_SCALING_INTERFACE_H_INCLUDED
SpeedScalingHandle(const std::string &name, const double *scaling_factor)
virtual ~SpeedScalingHandle()=default
Hardware interface to support reading the speed scaling factor.


ur_controllers
Author(s):
autogenerated on Sun Aug 22 2021 02:38:05