Skip to content

Commit

Permalink
Merge pull request #67 from robotology/fix/hand_retargeting_configura…
Browse files Browse the repository at this point in the history
…tion_file

Fix hand retargeting configuration file
  • Loading branch information
GiulioRomualdi authored Sep 9, 2020
2 parents 2d0a4a5 + 4b5db6f commit 9963563
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/RetargetingHelper/src/Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ bool RetargetingClient::initialize(const yarp::os::Searchable &config,
auto initializeHand = [&](auto& hand, const std::string& portNameLabel) -> bool
{
// open left hand port
if(!YarpUtilities::getStringFromSearchable(config, portNameLabel,
if(!YarpUtilities::getStringFromSearchable(option, portNameLabel,
portName))
{
yError() << "[RetargetingClient::initialize] Unable to get the string from searchable.";
Expand All @@ -85,15 +85,15 @@ bool RetargetingClient::initialize(const yarp::os::Searchable &config,
hand.port.open("/" + name + portName);


if(!YarpUtilities::getNumberFromSearchable(config, "smoothing_time_approaching", smoothingTimeApproching))
if(!YarpUtilities::getNumberFromSearchable(option, "smoothing_time_approaching", smoothingTimeApproching))
{
yError() << "[RetargetingClient::initialize] Unable to get the number from searchable.";
return false;
}
hand.smoothingTimeInApproaching = smoothingTimeApproching;


if(!YarpUtilities::getNumberFromSearchable(config, "smoothing_time_walking", smoothingTimeWalking))
if(!YarpUtilities::getNumberFromSearchable(option, "smoothing_time_walking", smoothingTimeWalking))
{
yError() << "[RetargetingClient::initialize] Unable to get the number from searchable.";
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ solver_name ma27
max-cpu-time 20

#DEGREES
jointRegularization (15, 0, 0,
-7, 22, 11, 30, 0,
-7, 22, 11, 30, 0,
5.082, 0.406, -0.131, -45.249, -26.454, -0.351,
5.082, 0.406, -0.131, -45.249, -26.454, -0.351)
jointRegularization (15, 0, 0,
-7, 22, 11, 30, 0, 0, 0,
-7, 22, 11, 30, 0, 0, 0,
5.082, 0.406, -0.131, -45.249, -26.454, -0.351,
5.082, 0.406, -0.131, -45.249, -26.454, -0.351)

#jointRegularization (0, 15, 0, 0, -29.794, 29.97, 0.00, 44.977, -29.794, 29.97, 0.00, 44.977, 5.082, 0.406, -0.131, -45.249, -26.454, -0.351, 5.082, 0.406, -0.131, -45.249, -26.454, -0.351)
#jointRegularization (15, 0, 0, 5.082, 0.406, -0.131, -45.249, -26.454, -0.351, 5.082, 0.406, -0.131, -45.249, -26.454, -0.351)
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ additional_rotation ((0.0 0.0 1.0),(1.0 0.0 0.0),(0.0 1.0 0.0))

## Regularization in degrees
joint_regularization (15, 0, 0,
-7, 22, 11, 30, 0,
-7, 22, 11, 30, 0,
-7, 22, 11, 30, 0, 0, 0,
-7, 22, 11, 30, 0, 0, 0,
5.082, 0.406, -0.131, -45.249, -26.454, -0.351,
5.082, 0.406, -0.131, -45.249, -26.454, -0.351)

joint_regularization_weights (1.0, 1.0, 1.0,
0.15, 0.25, 0.25, 0.15, 0.25,
0.15, 0.25, 0.25, 0.15, 0.25,
0.15, 0.25, 0.25, 0.15, 0.25, 0.25, 0.25,
0.15, 0.25, 0.25, 0.15, 0.25, 0.25, 0.25,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0)

joint_regularization_gains (5.0, 5.0, 5.0,
1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 5.0, 5.0,
1.0, 1.0, 1.0, 1.0, 1.0, 5.0, 5.0,
5.0, 5.0, 5.0, 5.0, 5.0, 5.0
5.0, 5.0, 5.0, 5.0, 5.0, 5.0)

Expand Down

0 comments on commit 9963563

Please sign in to comment.