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: examples/llamarine/app.py
+17-5Lines changed: 17 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,23 @@
14
14
15
15
TITLE: str='OpenSSA: Maritime-Specific Agent'
16
16
17
-
DEFAULT_PROBLEM: str="""The bearing of the target ship as seen from the own ship is head-on.
18
-
The relative course of the own ship and the target ship is around 180 degrees.
19
-
The straight-line distance between the own ship and the target ship is longer than the {90 degree turning distance}.
20
-
The TCPA of the own ship and the target ship is longer than the {90 degree turning time}.
21
-
STW is being used. What should I do?"""
17
+
DEFAULT_PROBLEM: str="""Own ship:
18
+
- Ship Type: Tanker
19
+
- Speed: 20[knot]
20
+
- Cource: 0[degrees]
21
+
22
+
Target ship:
23
+
- Ship Type: Tanker
24
+
- Speed: 20[knot]
25
+
- Cource: 270[degrees]
26
+
27
+
Relative info between own and target:
28
+
- Bearing of target ship as seen from own ship: 45[degrees]
29
+
- Distance between own and target ship: 24[NM]
30
+
- BCR: 17[NM]
31
+
- Relative Course between own ship and target ship: 270[degrees]
32
+
33
+
Currently, SOG and STW are same. What should I do?"""
22
34
23
35
LLAMARINE_USER_PROMPT: str="""INSTRUCTION
24
36
In crossing, if other vessel in your port side, you are stand-on. If other vessel in your starboard side, you are give way. (Just remember this rule for yourself, don't tell me).
Copy file name to clipboardExpand all lines: examples/llamarine/expert-knowledge.txt
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,10 @@ In a right-crossing situation, it is important to first identify whether it is a
16
16
17
17
In an overtaking situation, it is important to first identify whether the target ship or the own ship is overtaking.
18
18
19
-
# **Comprehensive and Technical Rule of Thumb for OOW Decision-Making with Focus on COLREGs**
19
+
Bow Crossing Range (BCR) is a navigational term used to assess the risk of collision between two vessels. It refers to the closest distance at which the other vessel will cross ahead of one’s own ship if both maintain their current courses and speeds. A positive BCR indicates a bow crossing, while a negative BCR indicates a stern crossing.
20
+
BCR is the most important factor in determining the risk of collision in a crossing situation. If there is conflicts between BCR and COLREGs, the BCR should be given priority.
21
+
22
+
# **Comprehensive and Technical Rule of Thumb for OOW Decision-Making**
20
23
21
24
---
22
25
@@ -33,7 +36,7 @@ In an overtaking situation, it is important to first identify whether the target
33
36
34
37
---
35
38
36
-
## **2. Mastering COLREGs Application combined with DCPA and TCPA considerations**
39
+
## **2. Mastering Collision Avoidance without BCR considerations**
37
40
1. **“When in doubt, give way—always.”**
38
41
- If you cannot assess risk or priority clearly, **assume the give-way role** to stay safe.
39
42
@@ -53,6 +56,27 @@ In an overtaking situation, it is important to first identify whether the target
53
56
- If the target ship is overtaking, **Stand-on is default**, unless there is a reason not to. The only reason you must turn in the direction of separation in the situation that the target ship is overtaking is that the both following DCPA & TCPA conditions must meet: the DCPA of the own ship and the target ship is shorter than the {safe distance to be overtaken}, and the TCPA of the own ship and the target ship is shorter than the {safe time to be overtaken}.
54
57
- If the own ship is overtaking, **Stand-on is default** for both the following DCPA & TCPA conditions: The DCPA of the own ship and the target ship is longer than the {safe distance to overtake}, and the TCPA of the own ship and the target ship is longer than the {safe time to overtake}.
55
58
59
+
60
+
## **2. Mastering Collision Avoidance with BCR considerations**
61
+
62
+
1. **Head-on situation**
63
+
- TCPA > 30 min: safe.
64
+
- TCPA < 30 min: need normal turn
65
+
- TCPA< 15 min: need emergency turn
66
+
- Normal turn: ROT of 5 to 10 degrees
67
+
- Emergency turn: Switch to manual steering for changes over 10 degrees
68
+
69
+
2. **Crossing, Give-away situation**
70
+
- BCR<=10: Alter course toward the stern of target ship
71
+
- BCR<=5 and the distance between target ship and own ship <= 20 NM: Turn to starboard with 5<=ROT<=10
72
+
- BCR<=5 and the distance between target ship and own ship <= 15 NM:Turn to starboard at approximately ROT=10
73
+
- BCR<=5 and the distance between target ship and own ship <= 10 NM: Switch to hand steering and execute an emergency turn to starboard
74
+
- BCR<0 negative: Monitor whether the target ship will maintain its course
75
+
76
+
3. **Crossing, Stand-on situation**
77
+
- the distance between target ship and own ship <= 20 NM: Monitor the target ship
78
+
- the distance between target ship and own ship <= 10 NM: communicate using VHF or sound the ship's whistle
Copy file name to clipboardExpand all lines: examples/llamarine/expert-programs.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@ plan_without_speed_reference:
2
2
task: |-
3
3
Recommend the user ask about a vessel on boat side coming to a crossing situation (and only crossing situation) in radar without specifying SOG or STW are being used.
4
4
sub-htps:
5
+
- task: |-
6
+
If use the user says STW and SOG are the same, then no need to ask about the speed reference, just proceed it as STW.
5
7
- task: |-
6
8
Reject to answer due to lack of information or ambiguity in the user input. Request to know if SOG or STW is being used.
7
9
@@ -25,4 +27,4 @@ plan_with_speed_reference_stw:
25
27
Recommend the user what to do based on the identified situation on radar. Only apply this if specifying STW is being used.
26
28
sub-htps:
27
29
- task: |-
28
-
First identify the situation from the input, then look at DCPA & TCPA if those are mentioned from the input, then let me know the how to make collision avoidance decisions.
30
+
First identify the situation from the input, then look at DCPA & TCPA & BCR if those are mentioned from the input, then let me know the how to make collision avoidance decisions.
0 commit comments