Skip to content

Conversation

@vortexuser
Copy link
Contributor

  • Improve scenario file for structure
  • Make it possible to transform entire structure from config file (previously you had to move the structure and the valves separately)
  • Update color of valves to orange
  • Add two aruco markers to the structure for testing
  • Add initial .gitignore file configuration (only ignores .vscode/)

@vortexuser vortexuser requested a review from Andeshog September 27, 2025 20:03
Comment on lines +1 to +7
drone_position: "2.25 -16.5 6.5"
drone_orientation: "-1.57 0.0 0.0"
water_jerlow: "0.20"
seafloor_position: "0.0 0.0 3.0"
seafloor_orientation: "1.57 0.0 0.0"
structure_position: "1.0 -18.0 8.1"
structure_orientation: "-1.57 0.0 -1.57"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be nice to add a comment behind every field here to indicate what it represents? For example

drone_position: "2.25 -16.5 6.5" # In NED coordinates

Comment on lines +42 to +43
xyz="1.196441 1.42144 1.807916"
rpy="0.0 0.0 1.57"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are still magic numbers, which could be moved to config file if that is wanted. Maybe in a future pull requests all such relationships (like the thruster positions in orca.scn) could be moved to yaml files too. That is issue material

Comment on lines +6 to +7
<water density="1031.0" jerlov="$(param water_jerlow)"/>
<waves height="10.0"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make waves height param too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a separate issue, just copied the setup in the tacc.scn

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set the height to 0 then probably, don't think tsunamies are common in Stavanger 😂

@kluge7 kluge7 requested a review from Copilot September 29, 2025 07:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the subsea structure simulation by improving configurability and visual representation. The changes enable parameterized positioning of the entire structure through configuration files and update the visual appearance of valves.

Key changes:

  • Added parameterized positioning for the structure and valves using configuration variables
  • Changed valve color from yellow to orange and added ArUco markers for testing
  • Replaced default seafloor with TACC-specific seafloor configuration

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
stonefish_sim/scenarios/structure.scn Updated water parameters and switched seafloor configuration
stonefish_sim/objects/structure.scn Restructured valve definitions with parameterized positioning and added ArUco markers
stonefish_sim/metadata/looks.scn Added orange color definition for valve appearance
stonefish_sim/config/tacc_config.yaml Added structure position and orientation parameters
stonefish_sim/config/structure_config.yaml New configuration file with complete structure parameters

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

<ocean>
<water density="1031.0" jerlov="0.60"/>
<waves height="0.0"/>
<water density="1031.0" jerlov="$(param water_jerlow)"/>
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter name 'water_jerlow' appears to be misspelled. It should likely be 'water_jerlov' to match the jerlov attribute name.

Suggested change
<water density="1031.0" jerlov="$(param water_jerlow)"/>
<water density="1031.0" jerlov="$(param water_jerlov)"/>

Copilot uses AI. Check for mistakes.
Comment on lines +127 to +128
<material name="Neutral"/>
<look name="Invisible"/>
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting is inconsistent - these lines should be properly indented to match the surrounding XML structure.

Suggested change
<material name="Neutral"/>
<look name="Invisible"/>
<material name="Neutral"/>
<look name="Invisible"/>

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are wrong here buddy.

Comment on lines +127 to +128
<material name="Neutral"/>
<look name="Invisible"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<material name="Neutral"/>
<look name="Invisible"/>
<material name="Neutral"/>
<look name="Invisible"/>

my bad, didnt think it would mess up the indentation. I think this should be correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants