您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
GitHub 51c9d26b Merge pull request #157 from Unity-Technologies/dev 3 年前
..
images Merge pull request #100 from Unity-Technologies/origin/dev 4 年前
unity_scripts Merge pull request #157 from Unity-Technologies/dev 3 年前
README.md Initial commit of public release branch 4 年前
publisher.md Update tutorial text (#148) 3 年前
server_endpoint.md Final commits for v0.1.2 (#96) 4 年前
service.md Update tutorial text (#148) 3 年前
setup.md Update tutorial text (#148) 3 年前
subscriber.md Update tutorial text (#148) 3 年前

README.md

ROS–Unity Integration

ROS–Unity Communication

A TCP endpoint running as a ROS node, which facilitates message passing to and from Unity and ROS.

The messages being passed between Unity and ROS are expected to be serialized as ROS would internally serialize them. To achieve this, the MessageGeneration plugin (from the ROS TCP Connector repo) can generate C# classes, including serialization and deserialization functions, from ROS .msg files.

The ROSConnection plugin (also from ROS TCP Connector) provides the Unity scripts necessary to publish, subscribe, or call a service.

Tutorials

Example Unity Scripts

Example scripts implemented in tutorials:

  • unity_scripts/RosPublisherExample.cs

    • Publishes the position of a GameObject every 0.5 seconds.
  • unity_scripts/RosServiceExample.cs

    • Returns a destination position for a GameObject to move towards each time the service is called.
  • unity_scripts/RosSubscriberExample.cs

    • Subscribes to a topic that accepts color messages and uses them to change the color of a GameObject in the Unity scene.