NJointHolonomicPlatformVelocityControllerInterface.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package RobotAPI::ArmarXObjects::NJointHolonomicPlatformUnitVelocityPassThroughController
17  * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18  * @date 2017
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
24 
26 
28 
29 namespace armarx
30 {
33  maxCommandDelay(IceUtil::Time::milliSeconds(500))
34  {
35  }
36 
37  void
39  float velocityY,
40  float velocityRotation)
41  {
43  getWriterControlStruct().velocityX = velocityX;
44  getWriterControlStruct().velocityY = velocityY;
45  getWriterControlStruct().velocityRotation = velocityRotation;
46  getWriterControlStruct().commandTimestamp = IceUtil::Time::now();
48  }
49 
52  {
53  return maxCommandDelay;
54  }
55 
56  void
58  const IceUtil::Time& value)
59  {
61  }
62 
63 } // namespace armarx
NJointHolonomicPlatformVelocityControllerInterface.h
armarx::NJointHolonomicPlatformVelocityControllerControlData::velocityRotation
float velocityRotation
Definition: NJointHolonomicPlatformVelocityControllerInterface.h:37
armarx::NJointHolonomicPlatformVelocityControllerInterface::NJointHolonomicPlatformVelocityControllerInterface
NJointHolonomicPlatformVelocityControllerInterface()
Definition: NJointHolonomicPlatformVelocityControllerInterface.cpp:32
armarx::NJointHolonomicPlatformVelocityControllerControlData::velocityX
float velocityX
Definition: NJointHolonomicPlatformVelocityControllerInterface.h:35
armarx::NJointHolonomicPlatformVelocityControllerInterface::getMaxCommandDelay
IceUtil::Time getMaxCommandDelay() const
Definition: NJointHolonomicPlatformVelocityControllerInterface.cpp:51
armarx::NJointHolonomicPlatformVelocityControllerInterface::setVelocites
void setVelocites(float velocityX, float velocityY, float velocityRotation)
Definition: NJointHolonomicPlatformVelocityControllerInterface.cpp:38
armarx::NJointHolonomicPlatformVelocityControllerInterface::setMaxCommandDelay
void setMaxCommandDelay(const IceUtil::Time &value)
Definition: NJointHolonomicPlatformVelocityControllerInterface.cpp:57
IceUtil
Definition: Instance.h:21
armarx::NJointControllerWithTripleBuffer< NJointHolonomicPlatformVelocityControllerControlData >::getWriterControlStruct
NJointHolonomicPlatformVelocityControllerControlData & getWriterControlStruct()
Definition: NJointControllerWithTripleBuffer.h:54
armarx::NJointControllerWithTripleBuffer< NJointHolonomicPlatformVelocityControllerControlData >::LockGuardType
std::lock_guard< std::recursive_mutex > LockGuardType
Definition: NJointControllerWithTripleBuffer.h:14
armarx::NJointHolonomicPlatformVelocityControllerInterface::maxCommandDelay
IceUtil::Time maxCommandDelay
Definition: NJointHolonomicPlatformVelocityControllerInterface.h:57
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::NJointControllerWithTripleBuffer< NJointHolonomicPlatformVelocityControllerControlData >::writeControlStruct
void writeControlStruct()
Definition: NJointControllerWithTripleBuffer.h:44
armarx::NJointControllerWithTripleBuffer< NJointHolonomicPlatformVelocityControllerControlData >::controlDataMutex
MutexType controlDataMutex
Definition: NJointControllerWithTripleBuffer.h:73
armarx::NJointHolonomicPlatformVelocityControllerControlData::velocityY
float velocityY
Definition: NJointHolonomicPlatformVelocityControllerInterface.h:36
armarx::armem::Time
armarx::core::time::DateTime Time
Definition: forward_declarations.h:13
ExpressionException.h
armarx::NJointHolonomicPlatformVelocityControllerControlData::commandTimestamp
IceUtil::Time commandTimestamp
Definition: NJointHolonomicPlatformVelocityControllerInterface.h:38
NJointControllerRegistry.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28