Skip to content

Conversation

@ulikoehler
Copy link

@ulikoehler ulikoehler commented Jan 11, 2025

This set of minor changes to the Dockerfile allows using visualize_franka.sh with Jazzy, to avoid incompabitilies in a Jazzy-based setup.

Jazzy has UID/GID 1000 already used by the ubuntu user, so I implemented a use existing group or create new group logic, same for the UID. For details, see
https://techoverflow.net/2025/01/12/shell-logic-how-to-create-user-group-if-no-user-group-with-that-uid-gid-exists/

I only tested scripts/visualize_franka.sh, and only with arm_id:=fr3. All tests were performed with UID=1000 & GID=1000 on Ubuntu 24.04.

@Smith-JackSmith
Copy link

This is a good idea.

We're not yet ready to upgrade to jazzy, but the $UID:$GID change is still useful for humble.

Maybe you would like to alter this PR to not yet reference jazzy.

We'll upgrade to jazzy in coordination with libfranka and frank_ros2.

Thank you for the PR anyway.

@ulikoehler
Copy link
Author

Hi @Smith-JackSmith . I've "downgraded" to humble as requested.

I've tested this configuration with

./scripts/visualize_franka.sh arm_id:=fr3

with the pass criterion that RViz is shown and the robot is displayed correctly.

@ulikoehler ulikoehler changed the title Port .docker/Dockerfile to Jazzy for visualize_franka.sh Prepare for Jazzy upgrade: Port .docker/Dockerfile to only create users if not already present Feb 2, 2025
@ulikoehler ulikoehler changed the title Prepare for Jazzy upgrade: Port .docker/Dockerfile to only create users if not already present Prepare for Jazzy upgrade: Improve .docker/Dockerfile to only create users if not already present Feb 2, 2025
Copy link
Author

@ulikoehler ulikoehler left a comment

Choose a reason for hiding this comment

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

Fix jazzy packages, use humble

@ulikoehler
Copy link
Author

@AndreasKuhner Should be fixed now !

@Smith-JackSmith
Copy link

This is what I had in mind.
Looks good to me.

Copy link

@Smith-JackSmith Smith-JackSmith left a comment

Choose a reason for hiding this comment

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

Thank you for the PR.

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.

3 participants