Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 1 | import numpy |
| 2 | |
| 3 | from graph_tools import * |
| 4 | |
Maxwell Henderson | 4491348 | 2023-02-04 16:37:27 -0800 | [diff] [blame] | 5 | neutral = to_theta_with_circular_index(-0.2, 0.33, circular_index=-1) |
| 6 | zero = to_theta_with_circular_index(0.0, 0.0, circular_index=-1) |
Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 7 | |
Maxwell Henderson | 4491348 | 2023-02-04 16:37:27 -0800 | [diff] [blame] | 8 | neutral_to_cone_1 = to_theta_with_circular_index(0.0, 0.7, circular_index=-1) |
| 9 | neutral_to_cone_2 = to_theta_with_circular_index(0.2, 0.5, circular_index=-1) |
| 10 | cone_pos = to_theta_with_circular_index(1.0, 0.4, circular_index=-1) |
Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 11 | |
Maxwell Henderson | 4491348 | 2023-02-04 16:37:27 -0800 | [diff] [blame] | 12 | neutral_to_cone_perch_pos_1 = to_theta_with_circular_index(0.4, |
| 13 | 1.0, |
| 14 | circular_index=-1) |
| 15 | neutral_to_cone_perch_pos_2 = to_theta_with_circular_index(0.7, |
| 16 | 1.5, |
| 17 | circular_index=-1) |
| 18 | cone_perch_pos = to_theta_with_circular_index(1.0, 2.0, circular_index=-1) |
Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 19 | |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame] | 20 | # TODO(Max): Add real paths for arm. |
| 21 | points = [(neutral, "NeutralPos"), (neutral_to_cone_1, "NeutralToConePos1"), |
| 22 | (neutral_to_cone_2, "NeutralToConePos2"), (cone_pos, "ConePos"), |
| 23 | (neutral_to_cone_perch_pos_1, "NeutralToConePerchPos1"), |
| 24 | (neutral_to_cone_perch_pos_2, "NeutralToConePerchPos2"), |
| 25 | (cone_perch_pos, "ConePerchPos")] |
Maxwell Henderson | 83cf6d6 | 2023-02-10 20:29:26 -0800 | [diff] [blame] | 26 | front_points = [] |
| 27 | back_points = [] |
| 28 | unnamed_segments = [] |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame] | 29 | named_segments = [ |
Maxwell Henderson | 4491348 | 2023-02-04 16:37:27 -0800 | [diff] [blame] | 30 | ThetaSplineSegment(neutral, neutral_to_cone_1, neutral_to_cone_2, cone_pos, |
| 31 | "NeutralToCone"), |
| 32 | ThetaSplineSegment(neutral, neutral_to_cone_perch_pos_1, |
| 33 | neutral_to_cone_perch_pos_2, cone_perch_pos, |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame] | 34 | "NeutralToConePerch"), |
Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 35 | ] |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame] | 36 | |
| 37 | segments = unnamed_segments + named_segments |