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
Commits
31ba6095
Commit
31ba6095
authored
5 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Make comments single-line, move getDefaultName() impl to .cpp
parent
66412b0e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!52
Robot state component/platform pose
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/RobotAPI/components/RobotState/RobotStateComponent.cpp
+5
-0
5 additions, 0 deletions
...ce/RobotAPI/components/RobotState/RobotStateComponent.cpp
source/RobotAPI/components/RobotState/RobotStateComponent.h
+16
-30
16 additions, 30 deletions
source/RobotAPI/components/RobotState/RobotStateComponent.h
with
21 additions
and
30 deletions
source/RobotAPI/components/RobotState/RobotStateComponent.cpp
+
5
−
0
View file @
31ba6095
...
...
@@ -536,6 +536,11 @@ namespace armarx
getConfigIdentifier
()));
}
std
::
string
RobotStateComponent
::
getDefaultName
()
const
{
return
"RobotStateComponent"
;
}
void
RobotStateComponent
::
setRobotStateObserver
(
RobotStateObserverPtr
observer
)
{
robotStateObs
=
observer
;
...
...
This diff is collapsed.
Click to expand it.
source/RobotAPI/components/RobotState/RobotStateComponent.h
+
16
−
30
View file @
31ba6095
...
...
@@ -79,9 +79,7 @@ namespace armarx
{
public:
/**
* \return SharedRobotInterface proxy to the internal synchronized robot.
*/
/// \return SharedRobotInterface proxy to the internal synchronized robot.
SharedRobotInterfacePrx
getSynchronizedRobot
(
const
Ice
::
Current
&
)
const
override
;
/**
...
...
@@ -95,40 +93,25 @@ namespace armarx
NameValueMap
getJointConfigAtTimestamp
(
double
,
const
Ice
::
Current
&
)
const
override
;
RobotStateConfig
getRobotStateAtTimestamp
(
double
timestamp
,
const
Ice
::
Current
&
)
const
override
;
/**
* \return the robot xml filename as specified in the configuration
*/
/// \return the robot xml filename as specified in the configuration
std
::
string
getRobotFilename
(
const
Ice
::
Current
&
)
const
override
;
/*!
* \brief getArmarXPackages
* \return All dependent packages, which might contain a robot file.
*/
/// \return All dependent packages, which might contain a robot file.
std
::
vector
<
std
::
string
>
getArmarXPackages
(
const
Ice
::
Current
&
)
const
override
;
/**
*
* \return The name of this robot instance.
*/
/// \return The name of this robot instance.
std
::
string
getRobotName
(
const
Ice
::
Current
&
)
const
override
;
std
::
string
getRobotStateTopicName
(
const
Ice
::
Current
&
)
const
override
;
/**
*
* \return The name of this robot instance.
*/
/// \return The name of this robot instance.
std
::
string
getRobotNodeSetName
(
const
Ice
::
Current
&
)
const
override
;
/**
* Create an instance of RobotStatePropertyDefinitions.
*/
/// Create an instance of RobotStatePropertyDefinitions.
PropertyDefinitionsPtr
createPropertyDefinitions
()
override
;
std
::
string
getDefaultName
()
const
override
{
return
"RobotStateComponent"
;
}
std
::
string
getDefaultName
()
const
override
;
void
setRobotStateObserver
(
RobotStateObserverPtr
observer
);
bool
interpolate
(
double
time
,
RobotStateConfig
&
config
)
const
;
...
...
@@ -137,7 +120,9 @@ namespace armarx
RobotInfoNodePtr
getRobotInfo
(
const
Ice
::
Current
&
)
const
override
;
protected:
/**
* Load and create a VirtualRobot::Robot instance from the RobotFileName
* property. Additionally listen on the KinematicUnit topic for the
...
...
@@ -149,12 +134,11 @@ namespace armarx
*/
void
onConnectComponent
()
override
;
void
onDisconnectComponent
()
override
;
/**
* Calls unref() on RobotStateComponent::_synchronizedPrx.
*/
/// Calls unref() on RobotStateComponent::_synchronizedPrx.
~
RobotStateComponent
()
override
;
//
i
nherited from KinematicUnitInterface
//
I
nherited from KinematicUnitInterface
void
reportControlModeChanged
(
const
NameControlModeMap
&
jointModes
,
Ice
::
Long
timestamp
,
bool
aValueChanged
,
const
Ice
::
Current
&
c
=
Ice
::
emptyCurrent
)
override
;
void
reportJointAngles
(
const
NameValueMap
&
jointAngles
,
Ice
::
Long
timestamp
,
bool
aValueChanged
,
const
Ice
::
Current
&
c
=
Ice
::
emptyCurrent
)
override
;
void
reportJointVelocities
(
const
NameValueMap
&
jointVelocities
,
Ice
::
Long
timestamp
,
bool
aValueChanged
,
const
Ice
::
Current
&
c
=
Ice
::
emptyCurrent
)
override
;
...
...
@@ -164,11 +148,12 @@ namespace armarx
void
reportJointMotorTemperatures
(
const
NameValueMap
&
jointMotorTemperatures
,
Ice
::
Long
timestamp
,
bool
aValueChanged
,
const
Ice
::
Current
&
c
=
Ice
::
emptyCurrent
)
override
;
void
reportJointStatuses
(
const
NameStatusMap
&
jointStatuses
,
Ice
::
Long
timestamp
,
bool
aValueChanged
,
const
Ice
::
Current
&
c
=
Ice
::
emptyCurrent
)
override
;
private:
void
readRobotInfo
(
const
std
::
string
&
robotFile
);
RobotInfoNodePtr
readRobotInfo
(
const
RapidXmlReaderNode
&
infoNode
);
bool
interpolateJoints
(
double
time
,
NameValueMap
&
jointAngles
)
const
;
bool
interpolatePose
(
double
time
,
FramedPose
&
pose
)
const
;
...
...
@@ -195,6 +180,7 @@ namespace armarx
float
robotModelScaling
;
RobotInfoNodePtr
robotInfo
;
};
}
...
...
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