Skip to content

Commit

Permalink
Fix DojoEnv type-not-used compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
janbruedigam committed Nov 23, 2022
1 parent 36572da commit eed5f81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DojoEnvironments/src/atlas/methods/initialize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function initialize_atlas!(mechanism::Mechanism;
link_linear_velocity=[zeros(3) for i=1:length(mechanism.bodies)],
link_angular_velocity=[zeros(3) for i=1:length(mechanism.bodies)],
hip_orientation=0.0,
knee_orientation=0.0) where T
knee_orientation=0.0)

body_position += (model_type == :armless) ? [0.0, 0.0, 0.9385 + 0.14853] : [0.0, 0.0, 0.9385]

Expand Down Expand Up @@ -221,7 +221,7 @@ function initialize_atlas_stance!(mech::Mechanism;
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
knee_orienation=0.0)

body_position += [0.0, 0.0, 0.9385]

Expand Down
2 changes: 1 addition & 1 deletion DojoEnvironments/src/fourbar/methods/initialize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ end

function initialize_fourbar!(mechanism::Mechanism;
angle=0.0,
angular_velocity=szeros(2)) where T
angular_velocity=szeros(2))

zero_velocity!(mechanism)
set_minimal_coordinates_velocities!(mechanism, get_joint(mechanism, :jointb1);
Expand Down
2 changes: 1 addition & 1 deletion DojoEnvironments/src/pendulum/methods/initialize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ end

function initialize_pendulum!(mechanism::Mechanism;
angle=0.7,
angular_velocity=0.0) where T
angular_velocity=0.0)
joint = mechanism.joints[1]
set_minimal_coordinates_velocities!(mechanism, joint;
xmin=[angle, angular_velocity])
Expand Down
2 changes: 1 addition & 1 deletion DojoEnvironments/src/walker/methods/initialize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ end

function initialize_walker!(mechanism::Mechanism;
body_position=[0.0, 0.0],
body_orientation=0.0) where T
body_orientation=0.0)

set_minimal_coordinates!(mechanism,
get_joint(mechanism, :floating_joint),
Expand Down

0 comments on commit eed5f81

Please sign in to comment.