Skip to content

Commit 3652ac8

Browse files
authored
Merge pull request #409 from aitomatic/test_v20250110
Update BCR knowledge - test v20250110
2 parents a09c297 + 9b8e1a5 commit 3652ac8

3 files changed

Lines changed: 46 additions & 8 deletions

File tree

examples/llamarine/app.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,23 @@
1414

1515
TITLE: str = 'OpenSSA: Maritime-Specific Agent'
1616

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?"""
2234

2335
LLAMARINE_USER_PROMPT: str = """INSTRUCTION
2436
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).

examples/llamarine/expert-knowledge.txt

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ In a right-crossing situation, it is important to first identify whether it is a
1616

1717
In an overtaking situation, it is important to first identify whether the target ship or the own ship is overtaking.
1818

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**
2023

2124
---
2225

@@ -33,7 +36,7 @@ In an overtaking situation, it is important to first identify whether the target
3336

3437
---
3538

36-
## **2. Mastering COLREGs Application combined with DCPA and TCPA considerations**
39+
## **2. Mastering Collision Avoidance without BCR considerations**
3740
1. **“When in doubt, give way—always.”**
3841
- If you cannot assess risk or priority clearly, **assume the give-way role** to stay safe.
3942

@@ -53,6 +56,27 @@ In an overtaking situation, it is important to first identify whether the target
5356
- 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}.
5457
- 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}.
5558

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
79+
5680
---
5781

5882
## **3. Risk Assessment and Avoiding Collisions**

examples/llamarine/expert-programs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ plan_without_speed_reference:
22
task: |-
33
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.
44
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.
57
- task: |-
68
Reject to answer due to lack of information or ambiguity in the user input. Request to know if SOG or STW is being used.
79
@@ -25,4 +27,4 @@ plan_with_speed_reference_stw:
2527
Recommend the user what to do based on the identified situation on radar. Only apply this if specifying STW is being used.
2628
sub-htps:
2729
- 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

Comments
 (0)