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
a6e1460e
Commit
a6e1460e
authored
8 years ago
by
Markus Swarowsky
Browse files
Options
Downloads
Patches
Plain Diff
fixed a typo and added ABS encoder values to the KinematicDataUnit
parent
7c17d271
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/libraries/Controllers/DataUnits/KinematicDataUnit.h
+9
-3
9 additions, 3 deletions
...otAPI/libraries/Controllers/DataUnits/KinematicDataUnit.h
with
9 additions
and
3 deletions
source/RobotAPI/libraries/Controllers/DataUnits/KinematicDataUnit.h
+
9
−
3
View file @
a6e1460e
...
...
@@ -53,7 +53,8 @@ namespace armarx
jointTorques
(
jointNames
.
size
(),
nullptr
),
jointCurrents
(
jointNames
.
size
(),
nullptr
),
jointMotorTemperatures
(
jointNames
.
size
(),
nullptr
),
jointGearTempertures
(
jointNames
.
size
(),
nullptr
),
jointGearTemperatures
(
jointNames
.
size
(),
nullptr
),
jointAbsPositions
(
jointNames
.
size
(),
nullptr
),
jointNames
{
jointNames
},
jointIndices
{
toIndexMap
(
jointNames
)}
{}
...
...
@@ -91,7 +92,11 @@ namespace armarx
}
virtual
std
::
vector
<
const
float
*>
getJointGearTemperatures
(
const
std
::
vector
<
std
::
string
>&
joints
)
const
{
return
getPointers
(
joints
,
jointGearTempertures
);
return
getPointers
(
joints
,
jointGearTemperatures
);
}
virtual
std
::
vector
<
const
float
*>
getJointAbsPositions
(
const
std
::
vector
<
std
::
string
>&
joints
)
const
{
return
getPointers
(
joints
,
jointAbsPositions
);
}
protected
:
...
...
@@ -100,7 +105,8 @@ namespace armarx
std
::
vector
<
float
*>
jointTorques
;
std
::
vector
<
float
*>
jointCurrents
;
std
::
vector
<
float
*>
jointMotorTemperatures
;
std
::
vector
<
float
*>
jointGearTempertures
;
std
::
vector
<
float
*>
jointGearTemperatures
;
std
::
vector
<
float
*>
jointAbsPositions
;
private
:
template
<
class
T
>
std
::
vector
<
const
T
*>
getPointers
(
const
std
::
vector
<
std
::
string
>&
joints
,
const
std
::
vector
<
T
*>&
targets
)
const
...
...
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