ms-iot / ROSOnWindows

ROS on Windows Documentation Repository
https://aka.ms/ros/docs
MIT License
212 stars 48 forks source link

[Foxy] ROS2 Development with Visual Studio 2019 #446

Open yerkgb opened 1 year ago

yerkgb commented 1 year ago

Hello,

I am trying to create ROS2 project on VISUAL STUDIO 2019 on top of existing project. My existing project successfully build in ROS with colcon_build. VS solution is working fine. However, once I include ROS libraries I can run it on Command Line, but it cannot run on VS19. I cant even debug with breakpoints as it is Release. Once i run this error appears:

Unhandled exception at 0x00007FFC1E7A536C in datamanager.exe: Microsoft C++ exception: rclcpp::exceptions::RCLError at memory location 0x00000032154FE3D0.

My system: Windows 11 Type of installation: Windows (source) VS19 Steps from https://github.com/ms-iot/ROSOnWindows/issues/310 is done

Is it even possible to debug ROS2 Project on VS 2019? I need to be able to publish topics from a program developed in C++ from VS 2019. Do you know any solution?

ooeygui commented 1 year ago

Hello There, I'm sorry, but this scenario is not supported. I had attempted to build a nuget package which would work for you, but that project was not funded to completion. If you want to see how that was done, check out http://aka.ms/ros/mrtk_native. It was a ROS nuget package, which would work for Desktop C++, UWP and Hololens.