-
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
Windows 10 ROS2 Humble Wrapper colcon build issues #2660
Comments
Hi @Dreoni A Humble user who experienced the same error message about diagnostic-updater being unable to be found resolved it by running the installation command below.
|
Hi Marty! Unfortunately Im on Windows 10 so no "sudo apt-get" for me. I dont think choco has that package either. I think if I can fix the TinyXML2 dependency error I can manually install the diagnostic-updater. The same TinyXML2 error also appeared to me before when compiling the realsense-ros wrapper. I commented the source temporarily just in case, but I guess there is no escaping it. Just as a reference I am trying to complile the packages in a x64 VS-19 command admin promt as recommended. These are the first lines I run before compiling
|
As seen in the @mjs513 installation issue at https://github.com/IntelRealSense/realsense-ros/issues/url it is not easy to get the RealSense ROS2 wrapper running on Humble in Windows due to the number of fixes that need to be made along the way. The official installation instructions only provide guidance for an Ubuntu colcon installation. A method to install tinyxml2 on Windows with Chocolatey is:
where <PATH_TO_DOWNLOADS> is the folder into which the package has been downloaded. A choco package for tinyxml2 6.0.0 can be downloaded from a file list here: https://github.com/ros2/choco-packages/releases/tag/2022-03-15 |
Hi Marty! Thanks for the response! CMake packages unable to find asio, tinyxml2, tinyxml, or eigen I have tried reinstalling with admin cmd and powershell to no avail. I don't know if there is a way to manually the registry's |
ros2/ros2#516 (comment) has some information about tinyxml2 on Windows and the registry entry. |
I got it! I had to reinstall cmake and then install the TinyXML2, asio,... to install cmake is as follows:
Now I have the same problem @mjs513 had:
I also downgraded from 2.53.1 to 2.51.1 but I still get the error. Furthermore, in the RealSenseViewer I get the following error:
Not sure how to fix either of those problems |
It's great to hear that you made significant progress! The Auto Exposure Limit error can occur if you are not using the recommended firmware for each SDK version. SDK 2.53.1 should be used with firmware 5.14.0.0 whilst 2.51.1 should be used with firmware 5.13.0.50. |
Thank you Marty! That indeed solved the viewer issue! Im still however working on the "realsense2 not found" |
My reading of #2587 gives me the impression that after the "realsense2" package problem was experienced, the solution in #2587 (comment) was to add in Eigen3 by dowloading from Eigen.org |
The issue seems to stay after I downloaded Eigen 3.4 and extracted it into C:\ changing the folder name to "Eigen3". Maybe it has to do with another issue? For now Im still stick with "realsense2 not found" I have noticed that my SDK install in "C:\Program Files (x86)\Intel RealSense SDK 2.0" does not have a CMake folder in contrast to the source file for SDK 2.0 1.51.1 |
The SDK is installed from a binary when using the Intel.RealSense.SDK-WIN10 installer program and so does not need CMake, which is for source code building. Update: I had another look at the 'realsense2 not found' problem but still did not yet find a solution, unfortunately. |
Hi @Dreoni Do you require further assistance with this case, please? Thanks! |
Hi Marty! Yes, Im still stuck on the same problem unfortunately |
A question in my mind is whether the installation process is installing ROS2 wrapper 4.51.1 as support for Humble was only added in that wrapper version onwards. This is a difficult case to resolve as there are so few reference sources about successful installation of the wrapper on Windows. |
Indeed, Im using the 4.51.1 wrapper from this repository https://github.com/IntelRealSense/realsense-ros/releases I tried compiling the intelrealsense from source ( https://dev.intelrealsense.com/docs/compiling-librealsense-for-windows-guide ) but Im not sure I did it right since it still doesnt "find" the right files. Do you know where is the "right" folders to put the source code and where to build the binaries? |
I'm sorry, I don't know because few people have succeeded in building the ROS wrapper on Windows. @mjs513 is probably the most knowledgable person about it at present. |
Hi @Dreoni Have you been able to make progress with installing the ROS2 wrapper on Humble and Windows, please? |
Hi Marty, still working on it. |
Thanks very much, please do update me if you succeed so that others can benefit from the knowledge! |
I got it compiled!! As I said I was forcing the code to work by hard codding all the problematic file references that seemed to be broken. Basically just a loong game of Wack a Mole: compile, find the file that it doesnt find using windows search, place it it its corresponding place, repeat. I didnt like that solution at all so, after all that, I also tried just putting the library (librealsense-2.51.1) directly into the ros2 workspace. Specifically at "C:\ros2_ws\src\realsense" and to my surprise it also found it and that package was able to compile! I commented out the initial hard code references but Im not 100% sure if it is still referencing the other location of the library. The next problem is that it didnt find "Eigen/Geometry" so I did the same and placed the source code (version 3.4.0 from https://eigen.tuxfamily.org ) into "C:\ros2_ws\src\eigen3". I had to compile it alone first so that the realsense package could find it:
Now It compiles! But when I try to launch the nodes the following happens:
So good news but I still have work to do! |
That's awesome news that you made significant progress after persisting with it. Congratulations :) Your launch log looks good aside from the Depth stream start failure at the end. Does it make a difference if you reset the camera at launch by adding initial_reset:=true to the end of your roslaunch instruction, please? |
That fixed the Depth stream failure! Thank you Marty! The next step would be to visualize the data. I'll keep working on it |
Excellent! You can visualize the data by launching the RViz interface in ROS2 by inputting ros2 run rviz rviz into the ROS terminal. |
Hi @Dreoni Do you require further assistance with this case, please? Thanks! |
Hi Marty im still working on it, it seems that no ros topics are published for some reason |
You can check with ros2 topic echo if a topic has data being published on it without using RViz. For example for the ROS2 depth topic, you could input the command below into the ROS terminal after launch has completed:
|
I think I got it! No idea why it wasnt working before, but now the topics are published! Now topic list shows the following
To get rviz2 to work I also had to download zlib1.dll and paste it in "C:\Windows\System32" and "C:\Windows\SysWOW64". Then launching rviz2 no longer gave me the error of zlib1 missing. To run rviz2 is as follows:
Anyways thank you Marty for all the help in the process!! I still have work to do but I think I will close this. Thanks again Marty!! |
It's my pleasure to have been able to help. Thanks so much for the detailed updates during this case that will be of future benefit to others attempting the same with Windows :) |
: Unable to locate package ros-humble-diagnostic-updater |
Hi @Dreoni, Can you please share your installation steps on windows ? |
Hello,
Im following in the steps of @mjs513 https://github.com/IntelRealSense/realsense-ros/issues/2587 and got stuck with some of the dependencies.
First it seems it cant find "diagnostic_updater"
If I add directly the package from https://github.com/ros/diagnostics/tree/stale/humble I get the following TinyXML2 not found error about 30 times in a row
I tried reinstalling the tinyxml2.6.0.0 and tinyxml-usestl.2.6.2 as suggested by the ros2 humble troubleshooting https://docs.ros.org/en/humble/How-To-Guides/Installation-Troubleshooting.html but the issue persists.
Any help will be appreciated!
The text was updated successfully, but these errors were encountered: