summaryrefslogtreecommitdiffstats
path: root/dev/a4-dance/rotation_bounds.h
diff options
context:
space:
mode:
authorKT <tran0563@umn.edu>2021-10-19 14:03:28 -0500
committerKT <tran0563@umn.edu>2021-10-19 14:03:28 -0500
commit12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6 (patch)
tree8e89330e51de3aa45ad3fafc57dc14eb5e1786e2 /dev/a4-dance/rotation_bounds.h
parentPublish a3 (diff)
downloadcsci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.gz
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.bz2
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.lz
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.xz
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.zst
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.zip
Publish a4
Diffstat (limited to 'dev/a4-dance/rotation_bounds.h')
-rw-r--r--dev/a4-dance/rotation_bounds.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev/a4-dance/rotation_bounds.h b/dev/a4-dance/rotation_bounds.h
new file mode 100644
index 0000000..7eee344
--- /dev/null
+++ b/dev/a4-dance/rotation_bounds.h
@@ -0,0 +1,30 @@
+#ifndef ROTATION_BOUNDS_H_
+#define ROTATION_BOUNDS_H_
+
+/** This class just provides a data structure to store information about how each bone can move,
+ including whehter it can rotate in the x, y, and z directions (some joints support rotation
+ along all axes, others are just 1-dimensional) and the min and max angles of rotation for
+ each axis */
+class RotationBounds {
+public:
+ RotationBounds();
+
+ void setdof(bool rx, bool ry, bool rz);
+
+ void setR(int index, float min, float max);
+
+ bool dofRX;
+ bool dofRY;
+ bool dofRZ;
+
+ int dofs;
+
+ float minRX;
+ float maxRX;
+ float minRY;
+ float maxRY;
+ float minRZ;
+ float maxRZ;
+};
+
+#endif