@@ -22,12 +22,22 @@ using namespace placo::humanoid;
22
22
23
23
void exposeWalkPatternGenerator ()
24
24
{
25
- class__<WalkPatternGenerator::Trajectory>(" WalkTrajectory" )
25
+ class__<WalkPatternGenerator::TrajectoryPart>(" WPGTrajectoryPart" , init<FootstepsPlanner::Support, double >())
26
+ .add_property (" t_start" , &WalkPatternGenerator::TrajectoryPart::t_start)
27
+ .add_property (" t_end" , &WalkPatternGenerator::TrajectoryPart::t_end, &WalkPatternGenerator::TrajectoryPart::t_end)
28
+ .add_property (" support" , &WalkPatternGenerator::TrajectoryPart::support);
29
+
30
+ class__<WalkPatternGenerator::Trajectory>(" WPGTrajectory" , init<double , double , double >())
26
31
.add_property (" t_start" , &WalkPatternGenerator::Trajectory::t_start)
27
32
.add_property (" t_end" , &WalkPatternGenerator::Trajectory::t_end)
33
+ .add_property (" com_target_z" , &WalkPatternGenerator::Trajectory::com_target_z)
34
+ .add_property (" trunk_pitch" , &WalkPatternGenerator::Trajectory::trunk_pitch)
35
+ .add_property (" trunk_roll" , &WalkPatternGenerator::Trajectory::trunk_roll)
36
+ .add_property (" kept_ts" , &WalkPatternGenerator::Trajectory::kept_ts)
28
37
.def (" get_T_world_left" , &WalkPatternGenerator::Trajectory::get_T_world_left)
29
- .def (" get_supports" , &WalkPatternGenerator::Trajectory::get_supports)
30
38
.def (" get_T_world_right" , &WalkPatternGenerator::Trajectory::get_T_world_right)
39
+ .def (" get_v_world_right" , &WalkPatternGenerator::Trajectory::get_v_world_right)
40
+ .def (" get_v_world_foot" , &WalkPatternGenerator::Trajectory::get_v_world_foot)
31
41
.def (" get_p_world_CoM" , &WalkPatternGenerator::Trajectory::get_p_world_CoM)
32
42
.def (" get_v_world_CoM" , &WalkPatternGenerator::Trajectory::get_v_world_CoM)
33
43
.def (" get_a_world_CoM" , &WalkPatternGenerator::Trajectory::get_a_world_CoM)
@@ -37,11 +47,13 @@ void exposeWalkPatternGenerator()
37
47
.def (" get_R_world_trunk" , &WalkPatternGenerator::Trajectory::get_R_world_trunk)
38
48
.def (" support_side" , &WalkPatternGenerator::Trajectory::support_side)
39
49
.def (" support_is_both" , &WalkPatternGenerator::Trajectory::support_is_both)
50
+ .def (" get_supports" , &WalkPatternGenerator::Trajectory::get_supports)
40
51
.def (" get_support" , &WalkPatternGenerator::Trajectory::get_support)
41
52
.def (" get_next_support" , &WalkPatternGenerator::Trajectory::get_next_support)
42
53
.def (" get_prev_support" , &WalkPatternGenerator::Trajectory::get_prev_support)
43
54
.def (" get_part_t_start" , &WalkPatternGenerator::Trajectory::get_part_t_start)
44
- .def (" apply_transform" , &WalkPatternGenerator::Trajectory::apply_transform);
55
+ .def (" apply_transform" , &WalkPatternGenerator::Trajectory::apply_transform)
56
+ .def (" print_parts_timings" , &WalkPatternGenerator::Trajectory::print_parts_timings);
45
57
46
58
class__<WalkPatternGenerator>(" WalkPatternGenerator" , init<HumanoidRobot&, HumanoidParameters&>())
47
59
.def (" plan" , &WalkPatternGenerator::plan)
@@ -124,16 +136,24 @@ void exposeWalkPatternGenerator()
124
136
.def (" dzmp" , &LIPM::Trajectory::dzmp)
125
137
.def (" dcm" , &LIPM::Trajectory::dcm);
126
138
127
- class__<LIPM>(" LIPM" , init<problem::Problem&, int , double , Eigen::Vector2d, Eigen::Vector2d, Eigen::Vector2d>())
139
+ class__<LIPM>(" LIPM" , init<problem::Problem&, double , int , double , Eigen::Vector2d, Eigen::Vector2d, Eigen::Vector2d>())
140
+ .def (" compute_omega" , &LIPM::compute_omega)
141
+ .def (" get_trajectory" , &LIPM::get_trajectory)
128
142
.def (" pos" , &LIPM::pos)
129
143
.def (" vel" , &LIPM::vel)
130
144
.def (" acc" , &LIPM::acc)
131
145
.def (" jerk" , &LIPM::jerk)
146
+ .def (" dcm" , &LIPM::dcm)
132
147
.def (" zmp" , &LIPM::zmp)
133
148
.def (" dzmp" , &LIPM::dzmp)
134
- .def (" dcm" , &LIPM::dcm)
135
- .def (" compute_omega" , &LIPM::compute_omega)
149
+ .def (" build_LIPM_from_previous" , &LIPM::build_LIPM_from_previous)
136
150
.def (" get_trajectory" , &LIPM::get_trajectory)
137
- .add_property (" x" , &LIPM::x)
138
- .add_property (" y" , &LIPM::y);
151
+ .add_property (" dt" , &LIPM::dt, &LIPM::dt)
152
+ .add_property (" timesteps" , &LIPM::timesteps, &LIPM::timesteps)
153
+ .add_property (" t_start" , &LIPM::t_start, &LIPM::t_start)
154
+ .add_property (" t_end" , &LIPM::t_end, &LIPM::t_end)
155
+ .add_property (" x_var" , &LIPM::x_var, &LIPM::x_var)
156
+ .add_property (" y_var" , &LIPM::y_var, &LIPM::y_var)
157
+ .add_property (" x" , &LIPM::x, &LIPM::x)
158
+ .add_property (" y" , &LIPM::y, &LIPM::y);
139
159
}
0 commit comments