kinfer 0.5.1__tar.gz → 0.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kinfer-0.5.1 → kinfer-0.5.3}/Cargo.toml +1 -1
- {kinfer-0.5.1 → kinfer-0.5.3}/PKG-INFO +1 -1
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust/Cargo.toml +1 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust/src/logger.rs +6 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust/src/model.rs +14 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust/src/types.rs +10 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer.egg-info/PKG-INFO +1 -1
- {kinfer-0.5.1 → kinfer-0.5.3}/.cargo/config.toml +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/LICENSE +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/MANIFEST.in +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/README.md +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/__init__.py +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/export/__init__.py +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/export/jax.py +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/export/pytorch.py +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/export/serialize.py +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/py.typed +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/requirements.txt +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust/src/lib.rs +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust/src/runtime.rs +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust_bindings/Cargo.toml +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust_bindings/pyproject.toml +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust_bindings/src/bin/stub_gen.rs +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/rust_bindings/src/lib.rs +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer/scripts/plot_ndjson.py +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer.egg-info/SOURCES.txt +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer.egg-info/dependency_links.txt +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer.egg-info/not-zip-safe +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer.egg-info/requires.txt +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/kinfer.egg-info/top_level.txt +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/pyproject.toml +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/setup.cfg +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/setup.py +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/tests/test_common.py +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/tests/test_jax.py +0 -0
- {kinfer-0.5.1 → kinfer-0.5.3}/tests/test_pytorch.py +0 -0
@@ -16,6 +16,8 @@ struct NdjsonStep<'a> {
|
|
16
16
|
t_us: u64,
|
17
17
|
joint_angles: Option<&'a [f32]>,
|
18
18
|
joint_vels: Option<&'a [f32]>,
|
19
|
+
initial_heading: Option<&'a [f32]>,
|
20
|
+
quaternion: Option<&'a [f32]>,
|
19
21
|
projected_g: Option<&'a [f32]>,
|
20
22
|
accel: Option<&'a [f32]>,
|
21
23
|
gyro: Option<&'a [f32]>,
|
@@ -88,6 +90,8 @@ impl StepLogger {
|
|
88
90
|
&self,
|
89
91
|
joint_angles: Option<&[f32]>,
|
90
92
|
joint_vels: Option<&[f32]>,
|
93
|
+
initial_heading: Option<&[f32]>,
|
94
|
+
quaternion: Option<&[f32]>,
|
91
95
|
projected_g: Option<&[f32]>,
|
92
96
|
accel: Option<&[f32]>,
|
93
97
|
gyro: Option<&[f32]>,
|
@@ -99,6 +103,8 @@ impl StepLogger {
|
|
99
103
|
t_us: Self::now_us() as u64,
|
100
104
|
joint_angles,
|
101
105
|
joint_vels,
|
106
|
+
initial_heading,
|
107
|
+
quaternion,
|
102
108
|
projected_g,
|
103
109
|
accel,
|
104
110
|
gyro,
|
@@ -241,6 +241,12 @@ impl ModelRunner {
|
|
241
241
|
"joint_angular_velocities" => {
|
242
242
|
input_types.push(InputType::JointAngularVelocities);
|
243
243
|
}
|
244
|
+
"initial_heading" => {
|
245
|
+
input_types.push(InputType::InitialHeading);
|
246
|
+
}
|
247
|
+
"quaternion" => {
|
248
|
+
input_types.push(InputType::Quaternion);
|
249
|
+
}
|
244
250
|
"projected_gravity" => {
|
245
251
|
input_types.push(InputType::ProjectedGravity);
|
246
252
|
}
|
@@ -296,6 +302,12 @@ impl ModelRunner {
|
|
296
302
|
let joint_vels_opt = inputs
|
297
303
|
.get(&InputType::JointAngularVelocities)
|
298
304
|
.map(|a| a.as_slice().unwrap());
|
305
|
+
let initial_heading_opt = inputs
|
306
|
+
.get(&InputType::InitialHeading)
|
307
|
+
.map(|a| a.as_slice().unwrap());
|
308
|
+
let quaternion_opt = inputs
|
309
|
+
.get(&InputType::Quaternion)
|
310
|
+
.map(|a| a.as_slice().unwrap());
|
299
311
|
let projected_g_opt = inputs
|
300
312
|
.get(&InputType::ProjectedGravity)
|
301
313
|
.map(|a| a.as_slice().unwrap());
|
@@ -313,6 +325,8 @@ impl ModelRunner {
|
|
313
325
|
lg.log_step(
|
314
326
|
joint_angles_opt,
|
315
327
|
joint_vels_opt,
|
328
|
+
initial_heading_opt,
|
329
|
+
quaternion_opt,
|
316
330
|
projected_g_opt,
|
317
331
|
accel_opt,
|
318
332
|
gyro_opt,
|
@@ -22,6 +22,8 @@ impl ModelMetadata {
|
|
22
22
|
pub enum InputType {
|
23
23
|
JointAngles,
|
24
24
|
JointAngularVelocities,
|
25
|
+
InitialHeading,
|
26
|
+
Quaternion,
|
25
27
|
ProjectedGravity,
|
26
28
|
Accelerometer,
|
27
29
|
Gyroscope,
|
@@ -35,6 +37,8 @@ impl InputType {
|
|
35
37
|
match self {
|
36
38
|
InputType::JointAngles => "joint_angles",
|
37
39
|
InputType::JointAngularVelocities => "joint_angular_velocities",
|
40
|
+
InputType::InitialHeading => "initial_heading",
|
41
|
+
InputType::Quaternion => "quaternion",
|
38
42
|
InputType::ProjectedGravity => "projected_gravity",
|
39
43
|
InputType::Accelerometer => "accelerometer",
|
40
44
|
InputType::Gyroscope => "gyroscope",
|
@@ -48,6 +52,8 @@ impl InputType {
|
|
48
52
|
match self {
|
49
53
|
InputType::JointAngles => vec![metadata.joint_names.len()],
|
50
54
|
InputType::JointAngularVelocities => vec![metadata.joint_names.len()],
|
55
|
+
InputType::InitialHeading => vec![1],
|
56
|
+
InputType::Quaternion => vec![4],
|
51
57
|
InputType::ProjectedGravity => vec![3],
|
52
58
|
InputType::Accelerometer => vec![3],
|
53
59
|
InputType::Gyroscope => vec![3],
|
@@ -61,6 +67,8 @@ impl InputType {
|
|
61
67
|
match name {
|
62
68
|
"joint_angles" => Ok(InputType::JointAngles),
|
63
69
|
"joint_angular_velocities" => Ok(InputType::JointAngularVelocities),
|
70
|
+
"initial_heading" => Ok(InputType::InitialHeading),
|
71
|
+
"quaternion" => Ok(InputType::Quaternion),
|
64
72
|
"projected_gravity" => Ok(InputType::ProjectedGravity),
|
65
73
|
"accelerometer" => Ok(InputType::Accelerometer),
|
66
74
|
"gyroscope" => Ok(InputType::Gyroscope),
|
@@ -75,6 +83,8 @@ impl InputType {
|
|
75
83
|
vec![
|
76
84
|
"joint_angles",
|
77
85
|
"joint_angular_velocities",
|
86
|
+
"initial_heading",
|
87
|
+
"quaternion",
|
78
88
|
"projected_gravity",
|
79
89
|
"accelerometer",
|
80
90
|
"gyroscope",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|