Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
RobotAPI
Merge requests
!451
Improve armar7 platform movement
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improve armar7 platform movement
feature/improve-armar7-platform-movement
into
master
Overview
6
Commits
9
Pipelines
28
Changes
2
Merged
Tobias Gröger
requested to merge
feature/improve-armar7-platform-movement
into
master
10 months ago
Overview
5
Commits
9
Pipelines
28
Changes
2
Expand
0
0
Merge request reports
Viewing commit
b82f9b94
Show latest version
2 files
+
6
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
b82f9b94
test
· b82f9b94
Tobias Gröger
authored
10 months ago
source/RobotAPI/components/units/RobotUnit/NJointControllers/NJointHolonomicPlatformVelocityControllerInterface.cpp
0 → 100644
+
63
−
0
Options
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::ArmarXObjects::NJointHolonomicPlatformUnitVelocityPassThroughController
* @author Raphael Grimm ( raphael dot grimm at kit dot edu )
* @date 2017
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#include
"NJointHolonomicPlatformVelocityControllerInterface.h"
#include
<ArmarXCore/core/exceptions/local/ExpressionException.h>
#include
<RobotAPI/components/units/RobotUnit/NJointControllers/NJointControllerRegistry.h>
namespace
armarx
{
NJointHolonomicPlatformVelocityControllerInterface
::
NJointHolonomicPlatformVelocityControllerInterface
()
:
maxCommandDelay
(
IceUtil
::
Time
::
milliSeconds
(
500
))
{
}
void
NJointHolonomicPlatformVelocityControllerInterface
::
setVelocites
(
float
velocityX
,
float
velocityY
,
float
velocityRotation
)
{
LockGuardType
guard
{
controlDataMutex
};
getWriterControlStruct
().
velocityX
=
velocityX
;
getWriterControlStruct
().
velocityY
=
velocityY
;
getWriterControlStruct
().
velocityRotation
=
velocityRotation
;
getWriterControlStruct
().
commandTimestamp
=
IceUtil
::
Time
::
now
();
writeControlStruct
();
}
IceUtil
::
Time
NJointHolonomicPlatformVelocityControllerInterface
::
getMaxCommandDelay
()
const
{
return
maxCommandDelay
;
}
void
NJointHolonomicPlatformVelocityControllerInterface
::
setMaxCommandDelay
(
const
IceUtil
::
Time
&
value
)
{
maxCommandDelay
=
value
;
}
}
// namespace armarx
Loading