-
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
Use method2 to install realsense-ros in windows get problem #1797
Comments
Hi @Twilight89 Yes, SDK 2.43.0 and ROS wrapper 2.2.23 are a compatible match. As a starting point in investigating your case, may I confirm please if you have installed ROS on Windows before you began installing the RealSense ROS wrapper (2.2.23). Having ROS installed is a requirement for using the RealSense ROS wrapper. |
@MartyG-RealSense Hope reply, sincerely. |
Which version of ROS are you using please? There are separate wrappers for ROS1 and ROS2 with different instructions. ROS1 (Kinetic, Melodic, Noetic) ROS2 (Dashing, Eloquent, Foxy) If you are using ROS1 then you would use the 2.2.23 ROS1 wrapper with SDK 2.43.0. If you are using ROS2 then you would use the 3.1.5 ROS2 wrapper with SDK 2.43.0. |
@MartyG-RealSense |
The link below has a guide to installing ROS on Windows and running roscore. https://janbernloehr.de/2017/06/10/ros-windows Your roscore launch output in the image above is almost the same as the roscore launch output shown in an image in the guide in the section titled Run a simple test. So that would suggest to me that your ROS Melodic installation on Windows is okay. So let's look again at the Method 2 process for installing RealSense ROS wrapper 2.2.23. You confirmed in your first message in this discussion that you have installed the librealsense SDK, which is required for using the RealSense ROS wrapper. Are you using the Windows Command Prompt terminal interface to enter the commands to set up the catkin workspace for the ROS wrapper as described in the guide linked to below? The Command Prompt is the interface that can be found by typing the word command into the text box at the bottom of the Windows screen, next to the corner button where the PC is shut down. |
@MartyG-RealSense In fact, if you just use "cmd" to run, there will be mistake that couldn't find ros and c++ compiler. So I create one like bellow, just like a command window in ubuntu. In the red rectangle: So I think this part is also no problem. I pretty curious that can you guys run this repo(realsense-ros) on windows ? I am very sad about this problem, exhaust me a lot, spending whole day but can't fix it. |
I recall a case where a RealSense ROS user bypassed the grep problem by replacing the checking equation with simply the value of the ROS wrapper version that they were using. For example in your case: git checkout 2.2.23 |
@MartyG-RealSense But subsequently run catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release, it got error same as my second message. Maybe git checkout 2.2.23 is not the solution. |
I am not set up on my computer to perform an installation myself. Let's check through the installation steps in the instructions. Before entering the catkin_make command, have you cloned the ROS dependency ddynamic_reconfigure into your catkin_ws/src folder from the link below: https://github.com/pal-robotics/ddynamic_reconfigure/tree/kinetic-devel Also, after you entered the git checkout 2.2.23 command, did you then input cd .. as mentioned in the instructions to navigate one directory backwards before entering the catkin_init_workspace command? If you did this, did you then input cd .. again to once again navigate one folder backwards before inputting catkin_make clean and catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release |
Other ROS users (not just RealSense ones) have had problems with setting the -DCATKIN_ENABLE_TESTING=False term. One RealSense ROS user got past the error by using True to permit testing. |
Thanks for advice. |
I do not personally recall a case where someone has clearly, without any room for doubt, confirmed that they succeeded in setting up the RealSense ROS wrapper from source-code on Windows and could not find such a case by researching it. As it is supported in the installation instructions though, I have to assume that it is possible. |
Ok, I don't think I have enough time to solve this weird problem. |
You are very welcome @Twilight89 |
Case closed due to no further comments received. If future readers of this case have advice for @Twilight89 then please feel free to leave a comment. |
I had the same problem (Win10, ROS Melodic, SDK 2.45 and ROS wrapper 2.3.0). So I copied the include folder from the sdk (C:\Program Files (x86)\Intel RealSense SDK 2.0\include) CMake gets to 100% now but fails while linking the shared library realsense2_camera.dll |
"vcpkg list" tells me that it installed realsense2:x64-windows 2.34.0. |
@TobiasVishchers My recollection from the time that these SDKs were released is that it was okay to use the wrapper for 2.33.1 with 2.34.0 because there were not significant changes between SDKs 2.33.1 and 2.34.0. Having said that, I usually recommend avoiding SDK 2.34.0 because it had an issue that generated continuous timing errors for some RealSense users. If you do not experience that error yourself then it should be okay to use it though. |
Hi~ I try to install realsense-ros in windows, and I have installed SDK2.0 in windows. When I run catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release , it get errors:
NMAKE : fatal error U1077: “P:\VisualStudio2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “P:\VisualStudio2017\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “P:\VisualStudio2017\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe”: 返回代码“0x2”
Stop.
Invoking "nmake" failed
(Inside 返回代码=return code)
By the way, in windows I can't run this command:
git checkout
git tag | sort -V | grep -P "^2.\d+\.\d+" | tail -1
Because no grep and tail command in windows.
And I use SDK2.43, ros rapper2.2.23, which is campatible I think.
Can you help me? I have got into big trouble.
Hope for your reply soon. Thanks~
The text was updated successfully, but these errors were encountered: