Skip to content
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

Changes for gzsim HITL support #5

Merged
merged 4 commits into from
Jan 23, 2024
Merged

Changes for gzsim HITL support #5

merged 4 commits into from
Jan 23, 2024

Conversation

haitomatic
Copy link

@haitomatic haitomatic commented Jan 19, 2024

  • only transfer needed sensor and groundtruth msg
  • suport only TCP and UDP (drop serial)
  • cleanup unused features
  • build.sh only builds and adds .so object to docker image artifacts repo which is then used in gz server https://github.com/tiiuae/gz-sim-server container as one of the gzsim plugins

Change out going message system id and component id
Increase max Recv buffer size to 30
@haitomatic
Copy link
Author

haitomatic commented Jan 22, 2024

px4-gzsim-plugins docker image now contains the .so asset that can be extracted by cloud simulation (SITL) and HITL setup.
The gazebo-sim-server container can access models,worlds and plugins in the same way via volume binding.

services:
  gazebo-server:
    network_mode: host
    image: ghcr.io/tiiuae/gz-sim-server:latest
    command: ["world.sdf"]
    volumes:
      - /tmp/.docker.xauth:/tmp/.docker.xauth
      - /tmp/.X11-unix:/tmp/.X11-unix
      - ../gz-models:/data/models
      - ../gz-worlds:/data/worlds
      - ../gz-plugins:/data/plugins
    environment:
      DISPLAY: ${DISPLAY}
    privileged: true

Copy link
Collaborator

@jnippula jnippula left a comment

Choose a reason for hiding this comment

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

Looks good to me

@haitomatic haitomatic merged commit 70a46b9 into master Jan 23, 2024
1 check passed
@haitomatic haitomatic deleted the simplify_for_hitl_PR branch March 10, 2024 13:38
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.

2 participants