EricVoll / ros-sharp

ROS# is a set of open source software libraries and tools in C# for communicating with ROS from .NET applications, in particular Unity3D
Apache License 2.0
36 stars 7 forks source link

The type * exists in both 'RosBridgeClient' and 'RosBridgeClientUWP, #1

Closed araster1010 closed 4 years ago

araster1010 commented 4 years ago

Hello. Thank you for your active contributions to the ROS# for UWP.

I cloned your project, I got 77 errors. They are all similar to the errors shown below.

Assets\RosSharp\Scripts\RosBridgeClient\MessageHandling\LaserScanWriter.cs(40,43): error CS0433: The type 'LaserScan' exists in both 'RosBridgeClient, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'RosBridgeClientUWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

I would appreciate any advice you can give me.

Thanks.

EricVoll commented 4 years ago

Hi @araster1010 Thank you for the issue creation.

Could you quickly explain how you fixed your error for future reference for other users?

I suspect, that the configuration of the Dll's in Unity was wrong (set to the wrong build targets) could that be the case?

Best, Eric

araster1010 commented 4 years ago

Thank you for your quick reply. That's right. I updated the dll files setting in Inspector.

In Assets/Rosharp/Plugins/RosBridgeClient, I changed WSAPlayer to disabled. (Just Editor and Standalone)

In Assets/Rosharp/Plugins/RosBridgeClientUWP, I changed Editor and Standaloneto disabled. (Just WSA Player)

Oh... I found it is written in ReadMe. I missed it. I'm very sorry.