-
Notifications
You must be signed in to change notification settings - Fork 2
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
Run batch simulations over set of startup params in yaml file #125
Conversation
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
…ault to use example sim params Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
if 'open' in door_state: | ||
mu_zz = 3000.0 | ||
|
||
# Heave cone | ||
heave_total_mass = 817 | ||
trefoil_mass = 10 | ||
trefoil_mass = 20 | ||
try: | ||
mu_zz | ||
except NameError: | ||
mu_zz = 10000.0 # not defined so default |
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.
FYI, I set mu_zz
value for added mass depending on the door state, but this PR doesn't have the added mass implemented yet. So mu_zz
is currently unused but ready when #115 is merged (or I can base this PR from that one)
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.
Yep, mu_zz in the .sdf.em is in the "add-addedmass-to-sdf" branch and PR, but we can't really merge that until the garden debians are available with the handling of the phantom weight of the added mass terms. Also, there is one other parameter that depends upon the doors open/closed state. That's Z_WW and changes a bit with open/closed, shown here: https://osrf.github.io/buoy_entrypoint/pr-preview/pr-17/theory/ That has not yet been parametrized in a .sdf file anywhere b/c we need the viscous drag branch/pull-request to be completed (goal of this friday...)
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.
@hamilton8415 I now set z_ww
as well (commit d990b32) but also unused until #115. I made a TODO to update
Signed-off-by: Michael Anderson <[email protected]>
Still having issues with #117 |
Correct me if I'm wrong but I noticed its always the (push) workflow that fails and not the (pull_request) |
Signed-off-by: Michael Anderson <[email protected]>
|
Signed-off-by: Michael Anderson <[email protected]>
Either something is getting stuck, or the machines are even slower than usual lately. I only have a single test running right now and it took more than 20 minutes to pass. |
yeah, seems like it. I wonder if those are slower machines than the PR? |
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
I've traced it down to getting stuck on a random (not the same one every time) |
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Regarding the batch file work, nice job. Looking like a good approach and I like it. Below is a number of items for consideration and discussion. I think it's easy to list off a ton of things for something like this and we should consider the value of each as we go to keep things from getting too complicated. But, here goes...
Good stuff here. |
|
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
…f gz sim Signed-off-by: Michael Anderson <[email protected]>
…mestamp everything; put rosbag names in log Signed-off-by: Michael Anderson <[email protected]>
@hamilton8415 check latest :) |
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Looking good, works nicely. It is of course not lost on me that the seed is chosen as 42 in the example. The only way I could break it is to not specify a seed in the yaml. We may want to allow that and have it indicate a new random seed on each run. Not sure about the implications of the --seed CLI options, presumably there is a default behavior if the seed isn't specified, or I'd imagine we can find a way... |
Per slack: @mabelzhang will work on backporting the |
…tion required Signed-off-by: Michael Anderson <[email protected]>
@hamilton8415 I added some error checking and defaults for params. I think this is a good stopping point for this PR (assuming the latest commit works for you), and we can add more params in future PRs as they get implemented. |
Ran fine for me, I agree we should merge this at this point and re-visit it when we have wave-heights and similar to set. On mine, there's a ton of INFO that comes out with the runs, perhaps we want to eventually explore a quiet mode that just outputs where it is in the progression as a default. |
Yeah I agree. When things get more stable, we should make a pass over printed things and prune.
|
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
NOTE: Needs latest updates to
ros2
branch inros_gz
repo: gazebosim/ros_gz#355To run example batch sim params yaml (located in
buoy_gazebo/scripts/example_sim_params.yaml
):$ ls
in the created results directory (batch_results_<timestamp>
) will show bagfiles and a log have been created.A yaml file can also be provided as an argument to the launch file