Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paris and minister demo #114

Merged
merged 16 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/WalkingControllersFindDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ checkandset_dependency(iDynTree)
find_package(Eigen3 3.2.92 QUIET)
checkandset_dependency(Eigen3)

find_package(UnicyclePlanner 0.4.0 QUIET)
find_package(UnicyclePlanner 0.4.2 QUIET)
checkandset_dependency(UnicyclePlanner)

find_package(osqp QUIET)
Expand Down
6 changes: 4 additions & 2 deletions src/TrajectoryPlanner/src/TrajectoryGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ bool TrajectoryGenerator::configurePlanner(const yarp::os::Searchable& config)

yarp::os::Bottle ellipseMethodGroup = config.findGroup("ELLIPSE_METHOD_SETTINGS");
double freeSpaceConservativeFactor = ellipseMethodGroup.check("conservative_factor", yarp::os::Value(2.0)).asFloat64();
double innerEllipseOffset = ellipseMethodGroup.check("inner_ellipse_offset", yarp::os::Value(0.0)).asFloat64();
double innerEllipseSemiMajorOffset = ellipseMethodGroup.check("inner_offset_major", yarp::os::Value(0.0)).asFloat64();
double innerEllipseSemiMinorOffset = ellipseMethodGroup.check("inner_offset_minor", yarp::os::Value(0.0)).asFloat64();


// try to configure the planner
std::shared_ptr<UnicyclePlanner> unicyclePlanner = m_trajectoryGenerator.unicyclePlanner();
Expand All @@ -143,7 +145,7 @@ bool TrajectoryGenerator::configurePlanner(const yarp::os::Searchable& config)
unicyclePlanner->startWithLeft(m_swingLeft);
unicyclePlanner->resetStartingFootIfStill(startWithSameFoot);
ok = ok && unicyclePlanner->setFreeSpaceEllipseConservativeFactor(freeSpaceConservativeFactor);
ok = ok && unicyclePlanner->setInnerFreeSpaceEllipseOffset(innerEllipseOffset);
ok = ok && unicyclePlanner->setInnerFreeSpaceEllipseOffsets(innerEllipseSemiMajorOffset, innerEllipseSemiMinorOffset);

ok = ok && m_trajectoryGenerator.setSwitchOverSwingRatio(switchOverSwingRatio);
ok = ok && m_trajectoryGenerator.setTerminalHalfSwitchTime(lastStepSwitchTime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
#Greater values make this behavior more sensitive.
conservative_factor 2.0

#This offset is subtracted from the semi_minor_axis and semi_major_axis to obtain the inner ellipse
inner_ellipse_offset 0.5
#This offset is subtracted from the semi_major_axis to obtain the inner ellipse
inner_offset_major 0.5

#This offset is subtracted from the semi_minor_axis to obtain the inner ellipse
inner_offset_minor 1.0

[ELLIPSE_MANAGER_SETTINGS]
port_name freeSpaceEllipse:in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
#Greater values make this behavior more sensitive.
conservative_factor 2.0

#This offset is subtracted from the semi_minor_axis and semi_major_axis to obtain the inner ellipse
inner_ellipse_offset 0.5
#This offset is subtracted from the semi_major_axis to obtain the inner ellipse
inner_offset_major 0.5

#This offset is subtracted from the semi_minor_axis to obtain the inner ellipse
inner_offset_minor 1.0

[ELLIPSE_MANAGER_SETTINGS]
port_name freeSpaceEllipse:in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
#Greater values make this behavior more sensitive.
conservative_factor 2.0

#This offset is subtracted from the semi_minor_axis and semi_major_axis to obtain the inner ellipse
inner_ellipse_offset 0.5
#This offset is subtracted from the semi_major_axis to obtain the inner ellipse
inner_offset_major 0.5

#This offset is subtracted from the semi_minor_axis to obtain the inner ellipse
inner_offset_minor 1.0

[ELLIPSE_MANAGER_SETTINGS]
port_name freeSpaceEllipse:in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@
#Greater values make this behavior more sensitive.
conservative_factor 2.0

#This offset is subtracted from the semi_minor_axis and semi_major_axis to obtain the inner ellipse
inner_ellipse_offset 0.5
#This offset is subtracted from the semi_major_axis to obtain the inner ellipse
inner_offset_major 0.5

#This offset is subtracted from the semi_minor_axis to obtain the inner ellipse
inner_offset_minor 1.0

[ELLIPSE_MANAGER_SETTINGS]
port_name freeSpaceEllipse:in

use_initial_ellipse 0
use_initial_ellipse 0

[INITIAL_ELLIPSE]

#Axis along the x direction
semi_major_axis 1.5

#Axis along the y direction
semi_minor_axis 1.0
semi_minor_axis 1.5

#Rotation around the z axis
angle 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ referencePosition (0.1 0.0)
timeWeight 2.5
positionWeight 1.0
slowWhenTurningGain 4.0
slowWhenBackwardFactor 0.5
slowWhenBackwardFactor 0.7

##Bounds
#Step length
Expand All @@ -20,8 +20,8 @@ minWidth 0.16
maxAngleVariation 15.0
minAngleVariation 8.0
#Timings
maxStepDuration 1.0
minStepDuration 0.7
maxStepDuration 1.2
minStepDuration 0.9

##Nominal Values
#Width
Expand All @@ -32,7 +32,7 @@ stepLandingVelocity 0.0
footApexTime 0.5
comHeightDelta 0.01
#Timings
nominalDuration 0.9
nominalDuration 1.1
lastStepSwitchTime 0.8
switchOverSwingRatio 0.7

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ max-cpu-time 20
#DEGREES
jointRegularization (0.0, 0.0, 0.0,
0.0, 0.0, 0.0,
-3.7, 25.0, -13.0, 40.769, 0, 0, 0,
-3.7, 25.0, -13.0, 40.769, 0, 0, 0,
12.0, 7.0, -12.0, 41.0, -28.3, 0, 0,
12.0, 7.0, -12.0, 41.0, -28.3, 0, 0,
5.76, 1.61, -0.31, -31.64, -20.52, -1.52,
5.76, 1.61, -0.31, -31.64, -20.52, -1.52)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ additional_rotation ((1.0 0.0 0.0),(0.0 1.0 0.0),(0.0 0.0 1.0))
# joint regularization values in degrees
joint_regularization (0.0, 0.0, 0.0,
0.0, 0.0, 0.0,
-3.7, 25.0, -13.0, 40.769, 0, 0, 0,
-3.7, 25.0, -13.0, 40.769, 0, 0, 0,
12.0, 7.0, -12.0, 41.0, -28.3, 0, 0,
12.0, 7.0, -12.0, 41.0, -28.3, 0, 0,
5.76, 1.61, -0.31, -31.64, -20.52, -1.52,
5.76, 1.61, -0.31, -31.64, -20.52, -1.52)

Expand All @@ -30,7 +30,7 @@ joint_regularization_weight_stance (0.0, 0.0, 0.0,

joint_regularization_weight_walking (0.0, 0.0, 0.0,
1.0, 1.0, 1.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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)
Expand Down Expand Up @@ -69,7 +69,7 @@ k_posHand 2.5
k_attHand 1.0

# use gain scheduling for hand retargeting
smoothing_time 0.5
smoothing_time 4.5

# joint limits
k_joint_limit_lower_bound 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,19 @@ max-cpu-time 20


#DEGREES
# jointRegularization (7, 0.12, -0.01,
# -3.7, 20.0, -13.0, 40.769,
# -3.7, 20.0, -13.0, 40.769,
# 5.76, 1.61, -0.31, -31.64, -20.52, -1.52,
# 5.76, 1.61, -0.31, -31.64, -20.52, -1.52)

jointRegularization (7, 0.12, -0.01,
-3.7, 20.0, -13.0, 40.769,
-3.7, 20.0, -13.0, 40.769,
12.0, 7.0, -12.0, 40.769,
12.0, 7.0, -12.0, 40.769,
5.76, 1.61, -0.31, -31.64, -20.52, -1.52,
5.76, 1.61, -0.31, -31.64, -20.52, -1.52)


# jointRegularization (7, 0.12, -0.01,
# -70.0, 46.70, 25.0, 40.769,
# -70.0, 46.70, 25.0, 40.769,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ neck_weight 5.0
additional_rotation ((1.0 0.0 0.0),(0.0 1.0 0.0),(0.0 0.0 1.0))

# Joint regularization term
# joint_regularization (7, 0.12, -0.01,
# -3.7, 20.0, -13.0, 40.769,
# -3.7, 20.0, -13.0, 40.769,
# 5.76, 1.61, -0.31, -31.64, -20.52, -1.52,
# 5.76, 1.61, -0.31, -31.64, -20.52, -1.52)

joint_regularization (7, 0.12, -0.01,
-3.7, 20.0, -13.0, 40.769,
-3.7, 20.0, -13.0, 40.769,
12.0, 7.0, -12.0, 40.769,
12.0, 7.0, -12.0, 40.769,
5.76, 1.61, -0.31, -31.64, -20.52, -1.52,
5.76, 1.61, -0.31, -31.64, -20.52, -1.52)


# joint_regularization (7, 0.12, -0.01,
# -70.0, 46.70, 25.0, 40.769,
# -70.0, 46.70, 25.0, 40.769,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
#Greater values make this behavior more sensitive.
conservative_factor 2.0

#This offset is subtracted from the semi_minor_axis and semi_major_axis to obtain the inner ellipse
inner_ellipse_offset 0.5
#This offset is subtracted from the semi_major_axis to obtain the inner ellipse
inner_offset_major 0.5

#This offset is subtracted from the semi_minor_axis to obtain the inner ellipse
inner_offset_minor 1.0

[ELLIPSE_MANAGER_SETTINGS]
port_name freeSpaceEllipse:in
Expand Down