include
speed_scaling_interface
speed_scaling_interface.h
Go to the documentation of this file.
1
// -- BEGIN LICENSE BLOCK ----------------------------------------------
2
// Copyright 2019 FZI Forschungszentrum Informatik
3
// Created on behalf of Universal Robots A/S
4
//
5
// Licensed under the Apache License, Version 2.0 (the "License");
6
// you may not use this file except in compliance with the License.
7
// You may obtain a copy of the License at
8
//
9
// http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing, software
12
// distributed under the License is distributed on an "AS IS" BASIS,
13
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
// See the License for the specific language governing permissions and
15
// limitations under the License.
16
// -- END LICENSE BLOCK ------------------------------------------------
17
18
//----------------------------------------------------------------------
25
//----------------------------------------------------------------------
26
27
//----------------------------------------------------------------------
28
//
29
// Note: This file was modified from the original.
30
//
31
//----------------------------------------------------------------------
32
33
#pragma once
34
35
#include <
hardware_interface/internal/hardware_resource_manager.h
>
36
37
namespace
scaled_controllers
38
{
39
class
SpeedScalingHandle
40
{
41
public
:
42
SpeedScalingHandle
() :
name_
(
""
),
scaling_factor_
(0){};
43
SpeedScalingHandle
(
const
std::string& name,
const
double
* scaling_factor)
44
:
name_
(name),
scaling_factor_
(scaling_factor){};
45
virtual
~SpeedScalingHandle
() =
default
;
46
47
std::string
getName
()
const
48
{
49
return
name_
;
50
}
51
52
const
double
*
getScalingFactor
()
const
53
{
54
return
scaling_factor_
;
55
}
56
57
private
:
58
std::string
name_
;
59
const
double
*
scaling_factor_
;
60
};
62
class
SpeedScalingInterface
:
public
hardware_interface::HardwareResourceManager
<SpeedScalingHandle>
63
{
64
};
65
}
// namespace scaled_controllers
scaled_controllers::SpeedScalingHandle
Definition:
speed_scaling_interface.h:39
scaled_controllers::SpeedScalingHandle::name_
std::string name_
Definition:
speed_scaling_interface.h:58
scaled_controllers
Definition:
speed_scaling_interface.h:37
scaled_controllers::SpeedScalingHandle::scaling_factor_
const double * scaling_factor_
Definition:
speed_scaling_interface.h:59
scaled_controllers::SpeedScalingHandle::getName
std::string getName() const
Definition:
speed_scaling_interface.h:47
scaled_controllers::SpeedScalingInterface
Hardware interface to support reading the speed scaling factor.
Definition:
speed_scaling_interface.h:62
scaled_controllers::SpeedScalingHandle::SpeedScalingHandle
SpeedScalingHandle()
Definition:
speed_scaling_interface.h:42
scaled_controllers::SpeedScalingHandle::getScalingFactor
const double * getScalingFactor() const
Definition:
speed_scaling_interface.h:52
scaled_controllers::SpeedScalingHandle::~SpeedScalingHandle
virtual ~SpeedScalingHandle()=default
scaled_controllers::SpeedScalingHandle::SpeedScalingHandle
SpeedScalingHandle(const std::string &name, const double *scaling_factor)
Definition:
speed_scaling_interface.h:43
hardware_interface::HardwareResourceManager
hardware_resource_manager.h
speed_scaling_interface
Author(s): Felix Exner
autogenerated on Thu Oct 17 2024 02:27:37