Skip to content
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

Can I develop ROS2 with visual studio 2019 in the build file solution? #375

Open
sssxrf opened this issue Jul 13, 2022 · 0 comments
Open
Assignees
Labels
enhancement New feature or request uwp ROS in a Windows app
Milestone

Comments

@sssxrf
Copy link

sssxrf commented Jul 13, 2022

I've seen the similar issues #310 and #374. They all create a visual studio project first and then link to the ROS2.

I wonder if we can create a ROS2 package first, colcon build it and modify the solution in the 'build' file.

For example, in my case, I created a ROS2 package called 'camera_test'. I applied a simple publisher to publish the FLIR camera's raw-mage information. Since I did't know how to link the Spinnaker library(FLIR camera's api) to the package, I failed the 'colcon build'. But still it generated a visual studio solution in the build file as showed below. I opened it and saw the exactly same code as well as the include path in my package.
image

So I wonder if it is a good way to modify code in this solution. For instance, link the Spinnaker library using Project->Properties->VC++Directories->Library Directories and Build->Build the solution. Is it the same as I link the library in Cmakelists and colcon build it?
image

ROS2 version: Foxy

It would be great if you could also tell me how to link the library using the Cmakelists. Thank you for your help!

@ooeygui ooeygui self-assigned this Nov 1, 2022
@ooeygui ooeygui added enhancement New feature or request uwp ROS in a Windows app labels Dec 2, 2022
@IoTDan IoTDan added this to the P2 milestone Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request uwp ROS in a Windows app
Projects
None yet
Development

No branches or pull requests

3 participants