Skip to content

Support host networking for start_ursim.sh #526

Description

@acmorrow

Feature summary

On macOS, docker containers run in a virtual machine. That means that the default 192.168.56.101 IP that the ursim container starts on is not reachable from the docker host.

If the script offered a mode that skipped creating ursim_net and ran with:

-      --net ursim_net --ip $IP_ADDRESS \
+      --net host \

Then it would be possible to run ursim on macos and access the simulated robot at localhost.

I did this by hacking up start_ursim.sh. It isn't ideal because it runs under emulation (there doesn't appear to be an arm64 image of universalrobots/ursim_e-series, but it was enough for me to get the integration tests building and passing locally on my mac by adding a INTEGRATION_TESTS_ROBOT_IP to tests/CMakeLists.txt, plumbing that through as part of EXTRA_ARGS, and then configuring with that set to 127.0.0.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions