-
Notifications
You must be signed in to change notification settings - Fork 10
Source ros distro setup file if needed #1311
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
Conversation
Signed-off-by: Ian Chen <ichen@openrobotics.org>
775fc7a
to
35399e9
Compare
@j-rivero, looking to get some advice from you regarding the best way to setup up ROS build env in the docker container. I think the Example console log: https://build.osrfoundation.org/job/gz_transport-ci-pr_any-noble-amd64/113/consoleFull#console-section-6 (in Any pointers on what I could be doing wrong? |
It could be related to ament/ament_cmake#304. I made some changes in source repo (gazebosim/gz-transport#614) to set Here's a test build of this branch with gazebosim/gz-transport#614 https://build.osrfoundation.org/job/gz_transport-ci-pr_any-noble-amd64/130/ Relevant console output shows gz-transport now finds zenoh packages:
|
fi | ||
|
||
if [[ ${GZ_TRANSPORT_MAJOR_VERSION} -ge 15 ]]; then | ||
export ROS_DISTRO="jazzy" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export ROS_DISTRO="jazzy" | |
export ROS_DISTRO_SETUP_NEEDED="jazzy" |
I would not mess with defining ROS_DISTRO but seems safer to me to inject a new variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also a comment on why we need this ROS package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed to ROS_DISTRO_SETUP_NEEDED
and added comment. e25781b
fi | ||
done | ||
|
||
if [[ -n ${ROS_DISTRO} ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change variable name accordingly here with the comment above. Also please include a comment on why we are using this in the generic_linux_compilation (the fact of using the zenoh vendor for transport) since there are other scripts dealing with ROS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated var and added comment e25781b, 5cefac7.
Actually if there's a better way to setup ROS env, let me know as well. I'm open to changing the implementation. I saw that there is some logic to setup ROS env in boilerplate_prepare.sh
but I don't see it sourcing the setup script there. Maybe the alternative is to move the logic there.
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
The idea was to use |
With the current setup, @iche033 where are we defined the ros-jazzy-zenoh-vendor dependency? In packages.apt? |
yes we put it in pacakges-noble.apt in gz-transport |
started another test build with latest changes from this PR: hmm zenoh is not found
In this commit: f0f4639, the |
Ouch, I was expecting the source of ~ ❯ echo ${ROS_DISTRO}
~ ❯ . /opt/ros/jazzy/setup.bash
~ ❯ echo ${ROS_DISTRO}
jazzy Inspecting the setup a little bit it is possible that we will need the package
|
new build with gazebosim/gz-transport#635 that installs gz-transport successfully finds zenoh:
|
Great, thanks Ian ! |
gazebosim/gz-transport#634 is failing since this was merged |
gz-transport15 depends on ros2 repo's
ros-jazzy-zenoh-cpp-vendor
package. We need to source the ros setup.bash script to find this package