RobotecAI / ros2cs

A C# (.Net) implementation of ros2 client library (rcl), enabling communication between ros2 ecosystem and C#/.Net applications such as Unity3D
Apache License 2.0
91 stars 22 forks source link

Build package in overlay mode failed on Ubuntu22.04 #43

Open Czl0223 opened 1 year ago

Czl0223 commented 1 year ago

Refer to the official tutorial in github to build ros2cs in Ubuntu22.04 https://github.com/RobotecAI/ros2cs/blob/master/README-UBUNTU.md, The installation of test-msgs, cyclonedds and fastrtps packages all works fine. An error occurred in the ros2cs_common package when building the overlay mode, The error log is as follows: image Can anyone help me to find the error...

pijaro commented 1 year ago

We are currently in the process of migrating the c# build tool back to dotnet. It looks like that readme still needs to be updated.

Please try to install .dotnet 6: sudo apt install dotnet-sdk-6.0

or, if that doesn't help, try the last stable version: https://github.com/RobotecAI/ros2cs/tree/1.2.1

Czl0223 commented 1 year ago

Direct execution: sudo apt install dotnet-sdk-6.0 on Ubuntu22.04 will cause conflicts, I refer to the solution in github

https://github.com/dotnet/sdk/issues/27082,

At this point, ros2cs can be built correctly in overlay mode

Czl0223 commented 1 year ago

Now there is a new problem, when I build in coverage mode, the test code is executed: ros2 run ros2cs_examples ros2cs_performance_talker produces the following error: 截图 2023-02-10 11-04-36 When I build in test mode--with-tests it produces the following error: 截图 2023-02-10 11-08-18 截图 2023-02-10 11-08-32

pijaro commented 1 year ago

The issue should now be fixed - https://github.com/RobotecAI/ros2cs/commit/e2aa0cb4b94ea098ef05c49be1b99acf8ca31db4 (currently in develop branch).

adamdbrw commented 1 year ago

@Czl0223 was this issue fixed for you?