You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/Alignment.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,16 @@ The use cases are as follows:
5
5
- FA position: arbitrary or from Spatial Fuel Map.
6
6
- Align to: nothing, centre of geometry or centre of collimation.
7
7
8
-
First, the position of the FA to go to is either arbitrary (as in: `Go to FA by pose` when `Spatial Fuel Map` is unchecked; `ROI - Square Grid`) or retrieved from the Spatial Fuel Map (as in: `Go to FA by index`; `Go to FA by pose` when `Spatial Fuel Map` is checked; `ROI - List`). Based on these, the following topics are published:
8
+
First, the position of the FA to go to is either arbitrary (as in: `Go to FA by pose` when `Spatial Fuel Map` is unchecked; `ROI - Square Grid`) or retrieved from the Spatial Fuel Map (as in: `Go to FA by index`; `Go to FA by pose` when `Spatial Fuel Map` is checked; `ROI - List`). Regardless of what it's based on, this is the target's expected position. Based on these, the following topics are published:
9
9
10
10
-`/rcvd/target_fa/index` (`std_msgs/String`): If FA is in Spatial Fuel Map, this is the index. Otherwise, this starts with `closest`.
11
11
-`/rcvd/target_fa/position` (`geometry_msgs/PointStamped`): If FA is in Spatial Fuel Map and this is not provided it is retrieved from SFM. Otherwise, this is the arbitrary position that an FA is expected to be found at.
12
12
13
-
At the same time, the target position is given as a goal to the local path planning system via the topic `/rcvd/local_goal` (`rasg_nav_msgs/LocalNavigationGoal`). The RCVD moves toward the target position.
13
+
At the same time, the target's expected position is given as a goal to the local path planning system via the topic `/rcvd/local_goal` (`rasg_nav_msgs/LocalNavigationGoal`). The RCVD moves toward the target position.
14
14
15
15
The alignment target is published to `/rcvd/target_fa/align_to` (`std_msgs/String`).
16
16
17
-
If the RCVD has not been requested to align to anything (`Align to` is `Nothing`) then once it reaches the target position, it is complete.
17
+
If the RCVD has not been requested to align to anything (`Align to` is `Nothing`) then once it reaches the target's expected position, it is complete.
18
18
19
19
If the RCVD has been requested to align to the centre of geometry or collimation, then the Computer Vision (CV) system will try to find the target FA within the Optical Payload image. This is performed by:
20
20
@@ -24,7 +24,7 @@ If the RCVD has been requested to align to the centre of geometry or collimation
24
24
25
25
Locating the grid cell containing the target position is performed by using the following information to transform the target position in metres from the fixed `map` frame into a position in pixels in the `cvd` frame. The following information is used for this:
26
26
27
-
- Target position (relative to `map` frame).
27
+
- Target expected position (relative to `map` frame).
28
28
- Global SLAM (pose of `odom` frame origin relative to `map` frame).
29
29
- Local SLAM (pose of `slam_base_link` frame origin relative to `odom` frame).
30
30
- Optical Payload pose in CV configuration (pose of `cvd` frame origin relative to `slam_base_link` frame).
@@ -37,4 +37,18 @@ Once the target FA has been located within the Optical Payload image, the positi
37
37
38
38
This position is published to the topic `/rcvd/align_feedback` (`rcvd_msgs/AlignFeedback`).
39
39
40
-
After the alignment feedback has started to be published, the local path planner will switch to a mode where it uses the feedback to align to the target. Once the magnitude of the feedback has stayed below the required value for the required duration, it is complete.
40
+
Once the alignment feedback has started to be published, the local path planner will switch to a mode where it uses the feedback to align to the target. Once the magnitude of the feedback has stayed below the required value for the required duration, it is complete.
41
+
42
+
## Success on completing the target
43
+
44
+
Regardless of alignment method, the RCVD has to meet both autonomy thresholds and alignment thresholds to succeed. These are all configured in `Settings > Autonomy`, `Settings > Autonomy - Thresholds/Distances`, `Settings > Autonomy - Timeouts`.
45
+
46
+
The alignment thresholds are time based.
47
+
48
+
If the RCVD has been requested to align to nothing, then the goal position is successful when:
0 commit comments