-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Windows10 Build Fails: colcon build #2587
Comments
Hi @mjs513 The RealSense ROS2 wrapper for Humble is intended for use with Ubuntu 22.04 rather than Windows. |
Good Very Early morning Marty Yes I am using a windows 10x64 so the instructions really don't work well. So been reading and experimenting for a couple of hours now and am making some progress - slowly but progress using google and alot of your responses to other issues that I have found. So far managed to get past my initial issue write by:
Right now I am getting an error:
which basically is telling me I have to add cv-bridge package to ROS2. So now in process of figuring out how to do that. Thoughts Thanks in advance PS. what happened to occupancy example in the wrapper? Was going to play with that if I ever get this running. |
I am not able to assist with T265 related enquiries (including the occupancy example), so will have to limit my support to the wrapper installation process. Having said that, the RealSense ROS occupancy example can be found at the link below . https://dev.intelrealsense.com/docs/2d-occupancy-map#3-2d-occupancy-map-d435t265 In regard to the Findcv_bridge error, another RealSense ROS2 user at #2369 (comment) solved it by changing the directory that they sourced to. This approach did not work though for another user who commented today in that discussion with the same error who was using a Docker container. |
Understand about the T265 - not a problem. as for the Findcv_bridge error msg. Yep - didn;t work for me either. Under Humble windows to source ros2 you have to run: Anyway I did dowload cv-bridge from the package repository for humble and a bit more progress:
Now trying to figure out what that means. |
After you posted I did an experiment (and then got sidetracked). After looking at opencv cmakelist I forced it to be true on fail and then get error messages about VS version errors. After looking a bit more realized I installed VS2022 versus on VS2019 (recommended on the ROS2 Windows install page) didn't think it would matter, but it did. After changing from 2022 to 2019 got the following error:
Found that they are got rid of the dependency on Boost in ROS2 however with cv-bridge there is a PR that was incorporated EDIT: Getting boost installed Edit2: all these errors will probably be fixed in the next official release of humble (just my guess) |
Thanks very much again for sharing your feedback. I look forward to your next report. Good luck! |
Ok Marty - this is an interesting one think I got the ros dependencies sorted but now getting this:
a bit confused. Looks like ROS2-realsense wants to rebuild realsense camera even though I have the SDK already installed in the program files. Does this make sense? |
Can you confirm please if you have installed the RealSense SDK on Windows first before you attempted to build the ROS wrapper, using the Intel.RealSense.SDK-WIN10 installer program in the 'Assets' file list of the SDK Releases page? https://github.com/IntelRealSense/librealsense/releases/tag/v2.51.1 |
@MartyG-RealSense I had 2.53.1 installed when trying the build. I uninstalled 2.53.1 and reinstalled using the 2.51.1 link : Unfortunately when I went tried to build it again with 2.53.1 I still get the same message:
EDIT: So going to give it a try that way. |
The SDK can also be built from source code with CMake on Windows. https://dev.intelrealsense.com/docs/compiling-librealsense-for-windows-guide The section of the guide about enabling metadata can be skipped, as this can be done in the RealSense Viewer instead. |
@MartyG-RealSense Anyways was back at it and just about ready to give it up. The issues now reside in realsense-camera (part of realsense-ros). Turns out I needed to also add in Eigen3 (which I did by dowloading from Eigen.org ) as well as the geometry2 library (tf2). well I can get past everything except the geometry2 package - dont think its updated yet for humble. When I do the compile I get:
according the ros2 website Humble doesn't use the catkin install by colcon. So now really stuck |
The Humble documentation provides information at the link below about geometry2. https://docs.ros.org/en/humble/Releases/Release-Humble-Hawksbill.html#geometry2 The geometry2 repository also lists compatibility with Humble. |
@MartyG-RealSense Reran this morning after reading your post so got a new error on missing Bullet library. Did find it eventually at EDIT: install using pip install --use-pep517 pybullet Kind of using the issue to document what I did just in case anyone else goes down this path |
Thanks so much @mjs513 for sharing your working-out process for the benefit of others who might attempt the same on Windows in future! |
@MartyG-RealSense Geometry2: realsense_camera for sys/time.h not found on windows(ros/roscpp_core#108) you have 👍
Right now got it rebuilding from scratch just to make sure, if it works then will try one of the examples with the camera attached. |
Thanks again @mjs513 for the continued working-out of your procedure. |
@MartyG-RealSense
this is the entire error log for realsense_camera:
|
A suggested solution for the ament error on Windows is at https://discourse.ros.org/t/ament-tutorial-build-fails-with-symlink/1899 |
Afternoon Marty Mike |
The only occurrence of this exact ament error CMake Error at ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:267 (message): https://www.reddit.com/r/ROS/comments/wxkfes/colcon_build_failed_in_example_failed_examples/ A commenter in that case said that the error disappeared after deleting the failed package. |
Morning
Once I did that the build completed successfully. And when I ran:
But RVIZ2 failed to display the pointcloud probably because of this error: |
A RealSense ROS user at #2295 who experienced the same error in RViz2 concluded that it was because their PC was running off the battery as it did not occur if the PC was attached to the mains socket. Are you using your computer on battery power? |
Interesting. I am running a SBC plugged into the PC Power Port of the USB Powered Hub. I just attached the D435 to a USB3 powered hub plugged into the SBC so power should be ok? But will play more with that. When I run rviz2 I get the following messages about stereo not supported:
Read through the Issue and tried the solution you showed in Issue #2339
|
Not sure if this matters but I just did
but if I do:
|
A hub that is plugged into the computing board is powered by the board and so is susceptible to USB power delivery instability, as the power is being drawn from the board's power supply components. A mains powered hub provides more stable power to USB as the power is drawn solely from the mains supply and does not draw from the board. A ROS2 user with the Stereo is NOT SUPPORTED message who had nothing in RViz got an image by using the instructions suggested at #1605 (comment) You could also try resetting the camera at launch by adding initial_reset:=true to your ros2 launch instruction. |
Sorry for not getting back sooner. Had some health issues today so first time I am back on the computer. Anyway, took your suggestion and managed to capture a frame but kept getting out of frame resources. I did find this: Out of frame resources #1288 so going to try that next. Out of curiosity I did run the python opencv example and it had no problems displaying the camera and depth frames. |
Well got it streaming finally at 30fps but want to change the fps but getting this error: I am using this command EDIT_ Nevermind found my answer - lowest rate is 15fps |
Thanks very much @mjs513 for the continued updates. It's great to hear that you are having successes. As the log message states, the supported resolution is 848x480 rather than 848x640. The minimum supported FPS on D435 for 848x480 resolution is 6. |
Morming @MartyG-RealSense . Yeah realized that after I got the message but when I tried to run it at 848x640x6 it gave me the same invalid message. |
Do you mean 848x480x6 as 848x640 is not a supported resolution? |
No - meant that 6fps is not supported because when I changed it to 848x640x15 it worked. |
Hi @mjs513 Do you have an update about this case that you can provide, please? Thanks! |
Hi @mjs513 Do you require further assistance with this case, please? Thanks! |
Hi @MartyG-RealSense So I am going to go ahead and close this. Think. |
Thanks very much @mjs513 for the update! |
Just want to say thanks again for all your help in getting this working for me - doubt I could have done it without your assistance. Respectfully |
You are very welcome. It's my pleasure to have been able to help. :) |
First happy new year to all.
Now for the issue. I have ROS2 Humble installed on a Windows 10 x64 pc. Tested and know its configured correctly using the turtlesim example. Same thing for librealsense, tested using one of the T265 examples using python3.
Now trying to build the ROS2 wrapper and getting errors. To build followed the instructions here: https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Colcon-Tutorial.html#id7
and the directory structure looks like this after the failure:
I ran the following command with the following errors:
I am attaching the entire error log - might be easier:
logger_all.log
Any help will be appreciated. Be forewarned - first doing so be warned.
The text was updated successfully, but these errors were encountered: