projects
/
computed_torque_controller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
429108a
)
Fix bug while reading gravity parameters.
author
Walter Fetter Lages
<w.fetter@ieee.org>
Tue, 9 Nov 2021 03:46:04 +0000
(
00:46
-0300)
committer
Walter Fetter Lages
<w.fetter@ieee.org>
Tue, 9 Nov 2021 03:46:04 +0000
(
00:46
-0300)
src/computed_torque_controller.cpp
patch
|
blob
|
history
diff --git
a/src/computed_torque_controller.cpp
b/src/computed_torque_controller.cpp
index
f4a8ee5
..
f3ab4ea
100644
(file)
--- a/
src/computed_torque_controller.cpp
+++ b/
src/computed_torque_controller.cpp
@@
-109,7
+109,7
@@
namespace effort_controllers
KDL::Vector g;
g[0]=node_->get_parameter("gravity.x").get_value<double>();
g[1]=node_->get_parameter("gravity.y").get_value<double>();
- g[2]=node_->get_parameter("gravity.
x
").get_value<double>();
+ g[2]=node_->get_parameter("gravity.
z
").get_value<double>();
idsolver_=std::make_unique<KDL::ChainIdSolver_RNE>(chain_,g);