|
Are there instructions anywhere on how to use the Yocto SDK to build a ROS2 package and install it on the target device so it can be run with I tried building the ROS2 examples (https://github.com/ros2/examples) using the Yocto SDK. I added Following #1204 (comment), I continued with the following steps: Build it: I then copied install/arm64 onto my target device. After that ROS still doesn't know about the packages I built. (They are not part of Any idea what I'm missing? |
Replies: 2 comments 1 reply
|
I can't recall if we tried running with ros2 when building with colcon with the SDK. It is a workflow we should support. I suspect that either AMENT_PREFIX_PATH isn't set properly or the packaging files didn't get copied into the right place. What does AMENT_PREFIX_PATH get set to after you source local_setup.bash? Where do you copy the contents of install/arm64 to on the device? (eg. /opt/ros/jazzy/share/examples_rclcpp_minimal_publisher ?) |
|
Glad to hear that it works for you. No bother at all. I am sure this discussion will help others that want to do this too.
|
I copied install/arm64 to an arbitrary location on disk.
I just tried it again (
source /opt/ros/jazzy/setup.bashfollowed bysource ./local_setup.bash) on a different device and now it just works.AMENT_PREFIX_PATH is
/data/my-tests/arm64:/opt/ros/jazzy(I copiedinstall/arm64to/data/my-tests/). That looks good to me as well.No idea, what changed. So it seems the process works in general, but there is an issue on my side with the other device.
Thanks for your support and sorry for bothering ;)