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
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Hofmann
RobotAPI
Commits
b2e45173
Commit
b2e45173
authored
8 years ago
by
Markus Swarowsky
Browse files
Options
Downloads
Patches
Plain Diff
Level 1 Controller interface for the platfrom velocity controler
parent
c05391ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/libraries/RobotRTControllers/LVL1Controller.h
+27
-5
27 additions, 5 deletions
...ce/RobotAPI/libraries/RobotRTControllers/LVL1Controller.h
with
27 additions
and
5 deletions
source/RobotAPI/libraries/RobotRTControllers/LVL1Controller.h
+
27
−
5
View file @
b2e45173
...
...
@@ -302,6 +302,12 @@ namespace armarx
controlDataTripleBuffer
{
initialCommands
}
{
}
virtual
void
rtSwapBufferAndRun
(
const
IceUtil
::
Time
&
sensorValuesTimestamp
,
const
IceUtil
::
Time
&
timeSinceLastIteration
)
override
{
rtUpdateControlStruct
();
rtRun
(
sensorValuesTimestamp
,
timeSinceLastIteration
);
}
protected
:
const
ControlDataStruct
&
rtGetControlStruct
()
const
{
...
...
@@ -311,11 +317,6 @@ namespace armarx
{
return
controlDataTripleBuffer
.
updateReadBuffer
();
}
virtual
void
rtSwapBufferAndRun
(
const
IceUtil
::
Time
&
sensorValuesTimestamp
,
const
IceUtil
::
Time
&
timeSinceLastIteration
)
override
{
rtUpdateControlStruct
();
rtRun
(
sensorValuesTimestamp
,
timeSinceLastIteration
);
}
void
writeControlStruct
()
{
...
...
@@ -336,5 +337,26 @@ namespace armarx
};
template
<
typename
ControlDataStruct
>
using
LVL1ControllerTemplatePtr
=
IceInternal
::
Handle
<
LVL1ControllerWithTripleBuffer
<
ControlDataStruct
>>
;
struct
PlatformCartesianVelocity
{
float
vx
;
float
vy
;
float
vAngle
;
PlatformCartesianVelocity
()
:
vx
(
0
),
vy
(
0
),
vAngle
(
0
)
{
}
};
class
AbstractLvl1PlatformVelocityController
:
public
virtual
LVL1ControllerWithTripleBuffer
<
PlatformCartesianVelocity
>
{
public:
virtual
void
setTarget
(
float
vx
,
float
vy
,
float
vAngle
)
=
0
;
};
typedef
boost
::
shared_ptr
<
AbstractLvl1PlatformVelocityController
>
AbstractLvl1PlatformVelocityControllerPtr
;
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment