-
Notifications
You must be signed in to change notification settings - Fork 253
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
Build error due to failed patch on rviz-ogre-vendor #1110
Comments
Thanks for reporting this. I will take a look at this once I get a chance next week. Results for running rviz2 and Gazebo on the target are something we want to support, however it is non-trivial as it requires Qt with Python and 3d acceleration. We don't yet have a practical use case for this. The assumption is that most people would run these tools on their laptop to connect to their robot remotely. Would this perhaps work for you? If not, I'd be interested in hearing more about your use case. |
Thank you for looking into this. |
I will add more details: Addid rviz layer causing all sort of unmet dependencies. |
I do have some unfinished work where I was adding 37+ new recipes to introduce ignition and some of its dependencies. The challenge is all the optional graphics libraries and other optional dependencies that aren't already in Yocto/OpenEmbedded. You can use recipetool to make it easier, but it is still significant work to get going. The work I did was for Humble+Kirkstone, however it should provide a path to getting it working on Humble+Mickledore. I estimate that it could be either days or weeks of work depending on your familiarity with Linux and/or Yocto. Does that help? If that's a challenge you're willing to take on, let me know. |
Hi @robwoolley I am also doing a side project using Yocto + ROS2 (humble kirkstone) on Turtlebot3, and seeing that lots of ignition or gazebo dependencies are missing as reported on my machine. My host machine: ubuntu 22.04 Here are my project configurations When trying to build
When trying to build
These error also occurs whenever I am trying to build any graphics things such as |
Hi Weiheng, Glad to hear from you. I have had the simulation tools like RViz and Gazebo running on Yocto in past releases (foxy or galactic if memory serves). It is on my list of things to look at next. I would be interested in hearing more about the use case because running a desktop on the robot itself seems unusual to me. I would have assumed that you might run rviz2 and Gazebo on a laptop with a GPU running Ubuntu and connect over the network to your robot. Can you tell me more about why running the simulation directly on the robot supports your work? As far as build instructions are concerned, I just recently added support for using kas. You may find it easier to automatically set up an environment: https://github.com/ros/meta-ros/blob/build/kas/README.md Regards, |
Hi @robwoolley Sorry for the confusion. Ubuntu 22.04 is just my host machine to build the Yocto ROS2 project (humble + kirkstone). Actually I can install rviz2 and gazebo directly on ubuntu via apt. I didn't intend to build it into my robot image. What I tried was just to build some default image like However, when building these targets, it threw some dependency chain error like
That's why I also tried
I also found rviz2 is one of the dependency of |
@robwoolley
I would imagine there are lots of missing dependencies related to this chain: Based on the turtlebot3 or ros-image-world usages, I am afriad that rviz2 and gazebo are required on the robot machine: |
I have a Turtlebot3 myself and was planning on trying to get it working again for the upcoming Jazzy release. May I suggest that you file a new issue for addressing the missing support for Turtlebot3? We can work towards adding the missing packages there. In the mean-time, if you just want to get ROS 2 Kirkstone + Humble running on the board, I suggest following these build instructions instead: https://github.com/ros/meta-ros/blob/build/kas/README.md It will build ros-image-core which I have recently verified will work. The ros-image-world literally builds everything and is more intended for nightly builds to look for regressions. We are still working on fixing some outstanding packages to get it working 100%. |
@robwoolley Thank you so much! I will file the issue. At the same time, could you suggest a previous version that works on turtlebot3? We are actively working on a project so want to bring up the bot asap |
@xchg-dot-ca I have been working on a series for Humble + Kirkstone that adds support for RViz2, Gazebo/Ignition, Ogre, and Ogre-Next, etc here: #1150 I haven't tried porting it to Mickledore, but it may just work. I would encourage you to switch to an LTS release (ie. Kirkstone or Scarthgap) if you can as that it where you can find continued support for extended features. |
Building
ros2-humble for Yocto mickledore ( aarch64le )
when processing layer for rviz2 getting the error in colsole:
ERROR: rviz-ogre-vendor-11.2.8-1-r0 do_patch: Applying patch '0001-CMakeLists-remove-all-ExternalProject_Add-calls-and-.patch' on target directory '/media/mlytvynyuk/2TB/workspace/yocto/build/tmp/work/cortexa57-poky-linux/rviz-ogre-vendor/11.2.8-1-r0/git'
In patch log:
NOTE: Applying patch '0001-CMakeLists-remove-all-ExternalProject_Add-calls-and-.patch' (../poky/meta-ros/meta-ros2-humble/recipes-bbappends/rviz/rviz-ogre-vendor/0001-CMakeLists-remove-all-ExternalProject_Add-calls-and-.patch) ERROR: Applying patch '0001-CMakeLists-remove-all-ExternalProject_Add-calls-and-.patch' on target directory '/media/mlytvynyuk/2TB/workspace/yocto/build/tmp/work/cortexa57-poky-linux/rviz-ogre-vendor/11.2.8-1-r0/git' CmdError('quilt --quiltrc /2TB/yocto/build/tmp/work/cortexa57-poky-linux/rviz-ogre-vendor/11.2.8-1-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-CMakeLists-remove-all-ExternalProject_Add-calls-and-.patch patching file CMakeLists.txt Hunk #1 FAILED at 6.
Here is my ROS related chunk from local.conf
The text was updated successfully, but these errors were encountered: