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

Update demo projects to use the new base image #199

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

eholum
Copy link
Contributor

@eholum eholum commented Oct 21, 2024

Resolves #198.

Depends on space-ros/space-ros#186

@eholum eholum self-assigned this Oct 21, 2024
@eholum
Copy link
Contributor Author

eholum commented Oct 21, 2024

@franklinselva built this on top of your changes as a sanity check. Things look good!

@franklinselva
Copy link

@eholum I think the space robots Mars Demo doesn't involve Moveit2. Am I wrong? It can run the demos using core images and a few control libraries. space-ros/space-ros#196 and space-ros/demos#31 are the related issues and PR. The robot demo on my end is 1.2 GB in size from the PR.

@franklinselva
Copy link

@eholum

I went through the changes and I could see a couple of areas we could improve and restrategize the way the moveit2 image is built. I am listing them below.

  • VCS_REF should not alter the existing vcs-ref anymore since it links the reference from the main repository. I would prefer adding a new metadata label like stack-vcs-ref to differentiate this is a stacked image and still refer to the main reference.
  • We can nest some layers together to better cache things.
  • We can use the ROS Install generator to generate the dependencies list like moveit2.repos (similar to ros2.repos) to keep the work consistent with the main repository. Currently, the versions of the moveit2 and its dependencies are black boxes unless we look into the image carefully.
  • The moveit2 dependencies can be built under /opt/spaceros-stacks/moveit2 with --merge-install to promote the same standards across all the stacks.

What do you think?

@eholum
Copy link
Contributor Author

eholum commented Oct 21, 2024

@eholum I think the space robots Mars Demo doesn't involve Moveit2.

The mars demo does not (AFAICT) but the Canadarm demo does, at least there's a moveit config and some MSA generated launch files, but the looks of it. I think there are probably bugs there which is why it's not explicitly linked in the docs.

I went through the changes and I could see a couple of areas we could improve and restrategize the way the moveit2 image is built.

Yes definitely! Though I think for the sake of both tracking changes and expediency we should probably keep this with a minimal change set, which might let us get everything in for the Nov release. Does that make sense to you? I'll make some of the minor adjustments you mentioned, though. And will also try to fix the nav2 build after #142 goes in.

@franklinselva
Copy link

I think the same goes for Canadarm2, it has moveit2_config but the canadarm2_demo doesn't use it yet.

I get it. I can take the major changes I mentioned to my plate and not disrupt the release cycle. I think this should help. What do you think?

@franklinselva
Copy link

@eholum Can you please share the new image sizes for the stack images, both moveit2 and nav2?

@eholum
Copy link
Contributor Author

eholum commented Oct 26, 2024

@eholum Can you please share the new image sizes for the stack images, both moveit2 and nav2?

Yep! Had to rebuild everything fresh but these are significantly smaller than the older images,

docker image ls
REPOSITORY                       TAG       IMAGE ID       CREATED             SIZE
openrobotics/space_robots_demo   latest    ccb64b1442c1   25 seconds ago      10.4GB
openrobotics/moveit2             latest    dbb3dd9dfa78   29 minutes ago      8.2GB
osrf/space_nav2_demo             latest    11fbaee382c9   17 minutes ago      3.65GB
osrf/space_nav2                  latest    181e4736f84f   About an hour ago   3.65GB
osrf/space-ros                   latest    a0a3ace0e0da   2 hours ago         1.05GB
osrf/space-ros                   dev       71dd7ab5976b   2 hours ago         2.27GB

@franklinselva
Copy link

franklinselva commented Oct 26, 2024

I haven't tried the older versions but from your last comment on the main repository, I can see the moveit2 image now is ~45% smaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Modify Demos to Use the Updated Lightweight Images Space ROS Base
2 participants