-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wget in maritime tutorials #2330
Conversation
Signed-off-by: Carlos Agüero <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## gz-sim8 #2330 +/- ##
===========================================
+ Coverage 65.95% 65.97% +0.01%
===========================================
Files 327 327
Lines 31347 31347
===========================================
+ Hits 20676 20681 +5
+ Misses 10671 10666 -5 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes work for me now. However, it seems like we are also commiting a zip file and then removing the old files? Shouldnt we download just the zip or use a git commit hash in the url?
@arjo129 , could you clarify that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Arjo is talking about these lines marked below.
It seems maybe the wget by directory was not working, so the new changes are wgetting the zip file and the model files individually.
tutorials/surface_vehicles.md
Outdated
@@ -28,8 +28,8 @@ To compile all the custom libraries in the right order `colcon` is recommended. | |||
The `colcon` tool is available on all platforms using `pip3`. | |||
|
|||
```bash | |||
mkdir ~/gazebo_maritime_ws | |||
wget https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/surface_vehicles/gazebo_maritime_ws -o ~/gazebo_maritime_ws -r | |||
wget https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/gz_maritime_ws.zip -O ~/gz_maritime_ws.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment #2330 (review) is talking about this line.
But it appears the file added is tutorials/files/surface_vehicles/gz_maritime_ws.zip
(under surface_vehicles
), whereas this line is referring to a zip file in underwater_vehicles
? Is that a typo?
The individual files removed are in surface_vehicles
here: https://github.com/gazebosim/gz-sim/tree/gz-sim8/tutorials/files/surface_vehicles
There's no zip file in underwater_vehicles
right now, nor in this PR: https://github.com/gazebosim/gz-sim/tree/gz-sim8/tutorials/files/underwater_vehicles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that was a typo, thanks! Fixed in 2d27c3f.
wget -r https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv/model.config -O ~/gazebo_maritime/models/my_lrauv/model.config | ||
wget -r https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv/model.sdf -O ~/gazebo_maritime/models/my_lrauv/model.sdf | ||
wget -r https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv/materials/textures/Tethys_Albedo.png -O ~/gazebo_maritime/models/my_lrauv/materials/textures/Tethys_Albedo.png | ||
wget -r https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv/materials/textures/Tethys_Metalness.png -O ~/gazebo_maritime/models/my_lrauv/materials/textures/Tethys_Metalness.png | ||
wget -r https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv/materials/textures/Tethys_Normal.png -O ~/gazebo_maritime/models/my_lrauv/materials/textures/Tethys_Normal.png | ||
wget -r https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv/materials/textures/Tethys_Roughness.png -O ~/gazebo_maritime/models/my_lrauv/materials/textures/Tethys_Roughness.png | ||
wget -r https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv/meshes/base.dae -O ~/gazebo_maritime/models/my_lrauv/meshes/base.dae | ||
wget -r https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv/meshes/propeller.dae -O ~/gazebo_maritime/models/my_lrauv/meshes/propeller.dae | ||
wget -r https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv/meshes/tethys.dae -O ~/gazebo_maritime/models/my_lrauv/meshes/tethys.dae |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment #2330 (review) is talking about these lines
These individual files are in underwater_vehicles
here: https://github.com/gazebosim/gz-sim/tree/gz-sim8/tutorials/files/underwater_vehicles/my_lrauv
These seem to be correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if you see anything suspicious there.
Yeah mabel is right. I think I got confused by the deletion of some of the files. |
Signed-off-by: Carlos Agüero <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me.
* Fix wget in maritime tutorials. Signed-off-by: Carlos Agüero <[email protected]> Signed-off-by: Gaurav Kumar <[email protected]>
🦟 Bug fix
Fixes #2329
Summary
There were some problems with the
wget
commands. This patch should fix it.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.