ros-sharp | open source software libraries and tools in C | Robotics library
kandi X-RAY | ros-sharp Summary
kandi X-RAY | ros-sharp Summary
ROS# is a set of open source software libraries and tools in C# for communicating with ROS from .NET applications, in particular Unity.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ros-sharp
ros-sharp Key Features
ros-sharp Examples and Code Snippets
Community Discussions
Trending Discussions on ros-sharp
QUESTION
I am trying integrate RosSharp (https://github.com/siemens/ros-sharp) and Mixed Reality Toolkit into one Unity project. Both of these libraries however use Newtonsoft.Json
which causes the error:
ANSWER
Answered 2018-Nov-28 at 22:13It turns out, I needed to use the right Unity Version - 2017 and (2017.4.16 in my case) and in Visual Studio, I also needed to go to Project > Manage NuGet packages and update my Newtonsoft package.
QUESTION
I cannnot subscribe to any topics using RosSharp. I am working entirely locally-on the same machine. I am fairly certain I have the right uri with the right port and cannot get any communication. I am running ROS through Win-ROS: https://ros-win.visualstudio.com/_git/ros-win?path=%2Fdoc%2FSetup.md&version=GBmaster
On my local Windows host machine, I am running roscore
and publishing a node with:
rostopic pub -r 10 /testtopic std_msgs/String "whatever"
.
I'm able to run a subscriber from the command prompt with rostopic echo /testtopic
and receive the correct data back, but I cannot get this subscriber to work in Unity. I'm expecting SubscriptionHandler to at least be called. This is the code I'm trying to replicate: https://github.com/siemens/ros-sharp/blob/a45e847f96d7dd1a7859dd9595e05ef27b27b5c3/Libraries/RosBridgeClientTest/RosSocketTests.cs
Below is my code attached to a GameObject, any help would be appreciated. Thank you.
...ANSWER
Answered 2018-Oct-24 at 22:28At the time of this writing, ros-win doesn't support rosbridge, which is the ros-websocket bridge that rosSharp can communicate with. If you must use ros-win and use RosSharp to do websocket communication in unity, then you will need to wait or write your own port of rosbridge.
If you can replace ros-win with ros on WSL, then you can do the following:
Install the ros-websocket bridge
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ros-sharp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page