We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3826753 commit 8ef741eCopy full SHA for 8ef741e
Project.toml
@@ -20,7 +20,6 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
20
Polyhedra = "67491407-f73d-577b-9b50-8179a7c68029"
21
Quaternions = "94ee1d12-ae83-5a48-8b1c-48b8ff168ae0"
22
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
23
-Rotations = "6038ab10-8711-5258-84ad-4b1120ba62dc"
24
Scratch = "6c6a2e73-6563-6170-7368-637461726353"
25
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
26
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
@@ -41,7 +40,6 @@ Meshing = "<0.5.7, 0.5.7"
41
40
Parameters = "<0.12.0, 0.12.0"
42
Polyhedra = "<0.7.1, 0.7.1"
43
Quaternions = "<0.5.3, 0.5.3"
44
-Rotations = "1.1"
45
Scratch = "1.1"
46
StaticArrays = "1.2"
47
julia = "1.6, 1.7"
environments/box2D/methods/initialize.jl
@@ -74,7 +74,7 @@ function initialize_box2D!(mechanism::Mechanism{T};
74
75
set_maximal_configurations!(body,
76
x=[0.0; position] + [0.0, 0.0 , z],
77
- q=Quaternion(RotX(orientation)))
+ q=RotX(orientation))
78
set_maximal_velocities!(body,
79
v=[0.0; linear_velocity],
80
ω=[angular_velocity, 0.0, 0.0])
environments/cartpole/methods/initialize.jl
@@ -17,7 +17,7 @@ function get_cartpole(;
17
# Links
18
origin = Origin{Float64}()
19
slider = Capsule(1.5 * radius, slider_length, slider_mass,
- axis_offset=Quaternion(RotX(0.5 * π)),
+ axis_offset=RotX(0.5 * π),
color=RGBA(0.7, 0.7, 0.7, 1.0))
pendulum = Capsule(radius, pendulum_length, pendulum_mass,
@@ -56,14 +56,14 @@ function initialize_cartpole!(mech::Mechanism{T,Nn,Ne,Nb};
56
if mode == :down
57
set_maximal_configurations!(mech.bodies[1], mech.bodies[2],
58
Δx=[0.0; 0.0; -0.5 * pendulum_length],
59
- Δq=Quaternion(RotX(π)))
+ Δq=RotX(π))
60
set_maximal_velocities!(mech.bodies[2],
61
v=zeros(3),
62
ω=zeros(3))
63
elseif mode == :up
64
65
Δx=[0.0; 0.0; 0.5 * pendulum_length],
66
67
68
69
environments/dzhanibekov/methods/initialize.jl
@@ -11,7 +11,7 @@ function get_dzhanibekov(;
11
main_body = Capsule(radius, body_length, body_mass,
12
color=color, name=:main)
13
side_body = Capsule(0.5 * radius, 0.35 * body_length, 0.5 * body_mass,
14
- axis_offset=Quaternion(RotY(0.5 * π)),
+ axis_offset=RotY(0.5 * π),
15
color=color, name=:side)
16
links = [main_body, side_body]
environments/humanoid/methods/initialize.jl
@@ -25,8 +25,8 @@ function get_humanoid(;
aa = -0.43000 * [-0.44721, 0.00000, 0.89442]
27
ql = axis_angle_to_quaternion(aa)
28
- qll = ql * Quaternion(RotXYZ(roll=-1.57080, pitch=1.47585, yaw=-1.47585)) # roll pitch yaw
29
- qlr = ql * Quaternion(RotXYZ(roll=+1.57080, pitch=1.47585, yaw=+1.47585)) # roll pitch yaw
+ qll = ql * RotX(-1.57080)*RotY(1.47585)*RotZ(-1.47585) # Quaternion(RotXYZ(roll=-1.57080, pitch=1.47585, yaw=-1.47585)) # roll pitch yaw
+ qlr = ql * RotX(+1.57080)*RotY(1.47585)*RotZ(+1.47585) # Quaternion(RotXYZ(roll=+1.57080, pitch=1.47585, yaw=+1.47585)) # roll pitch yaw
30
31
pfll = vector_rotate([ 0.5 * left_foot.shape.shape[1].rh[2] + 0.03500; -0.03; 0.0], qll)
32
pbll = vector_rotate([-0.5 * left_foot.shape.shape[1].rh[2] + 0.03500; -0.03; 0.0], qll)
environments/orbital/methods/initialize.jl
@@ -55,7 +55,7 @@ function initialize_orbital!(mechanism::Mechanism{T};
55
# set position and velocities
set_maximal_configurations!(mechanism.origin, pbody,
child_vertex=vert11,
- Δq=Quaternion(RotX(0.0)))
+ Δq=RotX(0.0))
set_minimal_coordinates!(mechanism, mechanism.joints[2], orientation)
environments/pendulum/methods/initialize.jl
@@ -106,7 +106,7 @@ function initialize_npendulum!(mechanism::Mechanism{T};
106
107
108
109
- Δq=Quaternion(RotX(base_angle)))
+ Δq=RotX(base_angle))
110
set_maximal_velocities!(pbody,
111
ω=base_angular_velocity)
112
environments/raiberthopper/methods/env.jl
@@ -142,7 +142,7 @@ function visualize(env::Environment{RaibertHopper}, traj::Vector{Vector{T}};
142
name=name)
143
step = range(0.0, stop=norm(dir), length=n_leg)
144
for i = 1:n_leg
145
- MeshCat.settransform!(env.vis["leg$i"], MeshCat.compose(MeshCat.Translation(step[i] .* dir_norm + x_foot), MeshCat.LinearMap(Rotations.RotY(0.0))))
+ MeshCat.settransform!(env.vis["leg$i"], MeshCat.compose(MeshCat.Translation(step[i] .* dir_norm + x_foot), MeshCat.LinearMap(Dojo.RotY(0.0))))
146
end
147
148
environments/raiberthopper/methods/initialize.jl
@@ -91,7 +91,7 @@ function initialize_raiberthopper!(mech::Mechanism{T,Nn,Ne,Nb};
91
# body to foot
92
set_maximal_configurations!(pbody, cbody,
93
Δx=[0.0; 0.0; -leg_length],
94
95
set_maximal_velocities!(pbody, cbody,
96
parent_vertex=tra2.vertices[1],
97
child_vertex=tra2.vertices[2],
environments/snake/methods/initialize.jl
@@ -70,7 +70,7 @@ end
70
71
function initialize_snake!(mechanism::Mechanism{T};
72
base_position=[0.0, -0.5, 0.0],
73
- base_orientation=Quaternion(RotX(0.6 * π)),
+ base_orientation=RotX(0.6 * π),
base_linear_velocity=zeros(3),
base_angular_velocity=zeros(3),
relative_linear_velocity=zeros(3),
0 commit comments