Skip to content

Conversation

@Carter90
Copy link

Starts gazebo in a mode(with libraries) so the spawner can be called.
Created a script that matches the virtual co2 publisher's plume misc/co2_plume_spawner.py

Sorry I had to open a new PR #7 would closed itself when was resting the branch one commit back and would not reopen.

@@ -0,0 +1,88 @@
#!/usr/bin/env python3
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you convert these to 4 space indentation?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry missed this now done in fee5a09

return plume(x, y, z)


plume_base = plume_grid()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder, could place the plume in gazebo with some input variables from the CLI?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah any defined model you can place(spawn) in gazebo from the command line

Copy link
Author

Choose a reason for hiding this comment

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

You just gotta make sure it matches the virtual co2publisher or that we write something that looks at the current gazebo models

@Carter90
Copy link
Author

docker exec -it `docker ps | grep dragonfly-sim | cut -d" " -f1` /bin/bash
source /opt/ros/humble/setup.bash
cd workspace/
./misc/co2_plume_spawner.py

Screenshot from 2023-05-27 01-17-34

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants