Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 4 additions & 4 deletions environments/atlas/methods/initialize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ function initialize_atlas!(mechanism::Mechanism;
return nothing
end

function initialize_atlas_stance!(mechanism::Mechanism;
function initialize_atlas_stance!(mech::Mechanism;
body_position=[0.0, 0.0, 0.2],
body_orientation=[0.0, 0.0, 0.0],
link_linear_velocity=[zeros(3) for i=1:length(mechanism.bodies)],
link_angular_velocity=[zeros(3) for i=1:length(mechanism.bodies)],
link_linear_velocity=[zeros(3) for i=1:length(mech.bodies)],
link_angular_velocity=[zeros(3) for i=1:length(mech.bodies)],
hip_orientation=0.0,
knee_orienation=0.0) where T

Expand Down Expand Up @@ -278,7 +278,7 @@ function initialize_atlas_stance!(mechanism::Mechanism;
nothing
end

zero_velocity!(mechanism)
zero_velocity!(mech)

return nothing
end
6 changes: 4 additions & 2 deletions src/Dojo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ export
get_contact,
get_sdf,
contact_location,
damper_impulses
damper_impulses,
contact_constraint

# Inputs
export
Expand All @@ -204,7 +205,8 @@ export
Mechanism,
get_mechanism,
initialize!,
set_floating_base
set_floating_base,
zero_velocity!

# Maximal
export
Expand Down