Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Florian Leander Singer
Simox
Commits
fb0fa3a5
Commit
fb0fa3a5
authored
2 years ago
by
ARMAR-7 User
Browse files
Options
Downloads
Patches
Plain Diff
commenting out print statements
parent
81769858
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
VirtualRobot/Nodes/RobotNodeFourBar.cpp
+9
-9
9 additions, 9 deletions
VirtualRobot/Nodes/RobotNodeFourBar.cpp
with
9 additions
and
9 deletions
VirtualRobot/Nodes/RobotNodeFourBar.cpp
+
9
−
9
View file @
fb0fa3a5
...
@@ -125,7 +125,7 @@ namespace VirtualRobot
...
@@ -125,7 +125,7 @@ namespace VirtualRobot
void
void
RobotNodeFourBar
::
setJointValueNoUpdate
(
float
q
)
RobotNodeFourBar
::
setJointValueNoUpdate
(
float
q
)
{
{
std
::
cout
<<
"RobotNodeFourBar: setting joint value no update "
<<
q
<<
std
::
endl
;
//
std::cout << "RobotNodeFourBar: setting joint value no update " << q << std::endl;
if
(
active
)
if
(
active
)
{
{
...
@@ -146,9 +146,9 @@ namespace VirtualRobot
...
@@ -146,9 +146,9 @@ namespace VirtualRobot
{
{
// We must update the preceeding node (the passive node).
// We must update the preceeding node (the passive node).
// This usually causes issues as the order to update the kinematic chain is strict.
// This usually causes issues as the order to update the kinematic chain is strict.
std
::
cout
<<
"RobotNodeFourBar: setting joint value "
<<
getName
()
<<
" "
<<
q
<<
std
::
endl
;
//
std::cout << "RobotNodeFourBar: setting joint value " << getName() << " " << q << std::endl;
std
::
cout
<<
"RobotNodeFourBar: active? "
<<
active
.
has_value
()
<<
std
::
endl
;
//
std::cout << "RobotNodeFourBar: active? " << active.has_value() << std::endl;
// update this node (without the global / internal pose!)
// update this node (without the global / internal pose!)
{
{
...
@@ -160,7 +160,7 @@ namespace VirtualRobot
...
@@ -160,7 +160,7 @@ namespace VirtualRobot
if
(
active
)
if
(
active
)
{
{
std
::
cout
<<
"RobotNodeFourBar: triggering update of passive joint "
<<
std
::
endl
;
//
std::cout << "RobotNodeFourBar: triggering update of passive joint " << std::endl;
// update all nodes including this one
// update all nodes including this one
active
->
passive
->
updatePose
(
true
);
active
->
passive
->
updatePose
(
true
);
...
@@ -206,7 +206,7 @@ namespace VirtualRobot
...
@@ -206,7 +206,7 @@ namespace VirtualRobot
// Whenever the joint value has changed, the passive joint will be updated.
// Whenever the joint value has changed, the passive joint will be updated.
if
(
active
)
if
(
active
)
{
{
std
::
cout
<<
"Initializing active four bar joint"
<<
std
::
endl
;
//
std::cout << "Initializing active four bar joint" << std::endl;
VR_ASSERT_MESSAGE
(
not
active
->
passive
,
"Second must not be initialized yet."
);
VR_ASSERT_MESSAGE
(
not
active
->
passive
,
"Second must not be initialized yet."
);
...
@@ -284,7 +284,7 @@ namespace VirtualRobot
...
@@ -284,7 +284,7 @@ namespace VirtualRobot
VR_ASSERT_MESSAGE
(
first
.
has_value
()
xor
active
.
has_value
(),
VR_ASSERT_MESSAGE
(
first
.
has_value
()
xor
active
.
has_value
(),
std
::
stringstream
()
<<
first
.
has_value
()
<<
" / "
<<
active
.
has_value
());
std
::
stringstream
()
<<
first
.
has_value
()
<<
" / "
<<
active
.
has_value
());
std
::
cout
<<
"Updating RobotNodeFourBar::updateTransformationMatrices"
<<
std
::
endl
;
//
std::cout << "Updating RobotNodeFourBar::updateTransformationMatrices" << std::endl;
Eigen
::
Isometry3f
tmp
=
Eigen
::
Isometry3f
::
Identity
();
Eigen
::
Isometry3f
tmp
=
Eigen
::
Isometry3f
::
Identity
();
...
@@ -292,21 +292,21 @@ namespace VirtualRobot
...
@@ -292,21 +292,21 @@ namespace VirtualRobot
if
(
active
)
if
(
active
)
{
{
std
::
cout
<<
"active: joint value "
<<
jV
<<
std
::
endl
;
//
std::cout << "active: joint value " << jV << std::endl;
active
->
math
.
update
(
jV
);
active
->
math
.
update
(
jV
);
tmp
=
active
->
math
.
joint
.
computeFk
(
jV
).
matrix
().
cast
<
float
>
();
tmp
=
active
->
math
.
joint
.
computeFk
(
jV
).
matrix
().
cast
<
float
>
();
}
}
else
// passive
else
// passive
{
{
std
::
cout
<<
"passive: joint value "
<<
jV
<<
std
::
endl
;
//
std::cout << "passive: joint value " << jV << std::endl;
tmp
.
linear
()
=
Eigen
::
AngleAxisf
(
jV
+
jointValueOffset
,
Eigen
::
Vector3f
::
UnitZ
())
tmp
.
linear
()
=
Eigen
::
AngleAxisf
(
jV
+
jointValueOffset
,
Eigen
::
Vector3f
::
UnitZ
())
.
toRotationMatrix
();
.
toRotationMatrix
();
}
}
std
::
cout
<<
"local transformation: "
<<
getName
()
<<
tmp
.
matrix
()
<<
std
::
endl
;
//
std::cout << "local transformation: " << getName() << tmp.matrix() << std::endl;
globalPose
=
parentPose
*
localTransformation
*
tmp
.
matrix
();
globalPose
=
parentPose
*
localTransformation
*
tmp
.
matrix
();
...
...
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