[Discourse.ros.org] [Next Generation ROS] ROS2 Beta2, how to include the RCL into Qt?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Discourse.ros.org] [Next Generation ROS] ROS2 Beta2, how to include the RCL into Qt?

Dirk Thomas via ros-users


Hi everyone,
So earlier before I was using ROS2 beta1 version on Qt. It was working when I include the library files of ROS2 using Qt's default way of add 3rd-party libraries. (right click on project and choose "add libraries" and so on...)

But when I switch to Beta2 version, this method doesn't work anymore. I guess it's because they introduced the commmand line tool like "ros2 run..." and somehow the way the static library linking to its dynamic library is changed?

Under Windows10, I tried adding the path "C:/dev/ros2/install/bin" into the environment variable PATH, but still it didn't do the trick. So does anyone have an idea of how to properly import Beta2-Libraries in Qt?

Thanks a lot





---
[Visit Topic](https://discourse.ros.org/t/ros2-beta2-how-to-include-the-rcl-into-qt/2547/1) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Reply | Threaded
Open this post in threaded view
|

[Discourse.ros.org] [Next Generation ROS] ROS2 Beta2, how to include the RCL into Qt?

Dirk Thomas via ros-users


The installation of executables to `lib/<pkgname>` instead of `bin` for the `ros2 run` command doesn't affect the location of libraries. Therefore I don't think this is related.

In general you don't have to modify any environment variables if you do call the setup file (which will do that for you).

Maybe you can post more information, what the exact error message is as well as the steps you are doing. E.g. a reproducible example might help to give you more specific feedback what might be causing the problem.





---
[Visit Topic](https://discourse.ros.org/t/ros2-beta2-how-to-include-the-rcl-into-qt/2547/2) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Reply | Threaded
Open this post in threaded view
|

[Discourse.ros.org] [Next Generation ROS] ROS2 Beta2, how to include the RCL into Qt?

Dirk Thomas via ros-users
In reply to this post by Dirk Thomas via ros-users


Hi thomas,,
Thank you for the reply!
How should I call the setup file inside qt?

The problem is: every time I use any function in rclcpp, for example, `rclcpp::init(arg, argv)`, qt would crush at run time.
No error message from Qt it simply crushes.  Building in Qt was fine.

For testing you can just import the two libraries: rclcpp and PocoFoundation.

Everything was working fine on Beta1 with Qt. Only with the Beta2 version, I have this problem.





---
[Visit Topic](https://discourse.ros.org/t/ros2-beta2-how-to-include-the-rcl-into-qt/2547/3) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Reply | Threaded
Open this post in threaded view
|

[Discourse.ros.org] [Next Generation ROS] ROS2 Beta2, how to include the RCL into Qt?

Dirk Thomas via ros-users
In reply to this post by Dirk Thomas via ros-users


[quote="Kloping, post:3, topic:2547"]
How should I call the setup file inside qt?
[/quote]

Please refer to the [instructions](https://github.com/ros2/ros2/wiki/Windows-Development-Setup#testing-and-running) which describe how to use the setup file.

[quote="dirk-thomas, post:2, topic:2547"]
Maybe you can post more information, what the exact error message is as well as the steps you are doing. E.g. a reproducible example might help to give you more specific feedback what might be causing the problem.
[/quote]

Please provide more information to allow others to help you. With the sparse information you have given I can't provide any better feeedback.





---
[Visit Topic](https://discourse.ros.org/t/ros2-beta2-how-to-include-the-rcl-into-qt/2547/4) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>