ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Adding my comment as an answer so everyone gets notified:

I've managed to get it to work - two things that are worth noting: 1. You need to call rclcpp::init() and 2. You need to either build ros2 manually to be able to debug into it or run everything in release mode (more info: https://github.com/ms-iot/ROSOnWindows/issues/310)

If you have any other questions/ issues feel free to message me! I might create a "tutorial" somewhere and link it, if you have recommendations on where/how to do that I'd appreciate it.

Adding my comment as an answer so everyone gets notified:

I've managed to get it to work - two things that are worth noting: 1. You need to call rclcpp::init() and 2. You need to either build ros2 manually to be able to debug into it or run everything in release mode (more info: https://github.com/ms-iot/ROSOnWindows/issues/310)

If you have any other questions/ issues feel free to message me! I might create a "tutorial" somewhere and link it, if you have recommendations on where/how to do that I'd appreciate it.

Update: I've created a minimal solution in this repo: https://github.com/ItsMeTheBee/VisualStudioROS

The repo does not contain everything I've done but I think this "bare" example is better than a complex structure they likely don't need. Feel free to message me through GitHub or create issues - I'll try to help =)

Adding my comment as an answer so everyone gets notified:

I've managed to get it to work - two things that are worth noting: 1. You need to call rclcpp::init() and 2. You need to either build ros2 manually to be able to debug into it or run everything in release mode (more info: https://github.com/ms-iot/ROSOnWindows/issues/310)

If you have any other questions/ issues feel free to message me! I might create a "tutorial" somewhere and link it, if you have recommendations on where/how to do that I'd appreciate it.

Update: I've created a minimal solution on how to integrate ROS2 in Visual Studio 2019, build a DLL and call the DLL functions through C# in this repo: https://github.com/ItsMeTheBee/VisualStudioROS

The repo does not contain everything I've done but I think this "bare" example is better than a complex structure they likely don't need. Feel free to message me through GitHub or create issues - I'll try to help =)

Adding my comment as an answer so everyone gets notified:

I've managed to get it to work - two things that are worth noting: 1. You need to call rclcpp::init() and 2. You need to either build ros2 manually to be able to debug into it or run everything in release mode (more info: https://github.com/ms-iot/ROSOnWindows/issues/310)

If you have any other questions/ issues feel free to message me! I might create a "tutorial" somewhere and link it, if you have recommendations on where/how to do that I'd appreciate it.

Update: I've created a minimal solution on how to integrate ROS2 in Visual Studio 2019, build a DLL and call the DLL functions through C# in this repo: https://github.com/ItsMeTheBee/VisualStudioROS

The repo does not contain everything I've done but I think this "bare" example is better than a complex structure they likely don't need. Feel free to message me through GitHub or create issues - I'll try to help =)