浏览代码

Updating tutorials to the glorious new world (#211)

/shuo-AIRO-343-update-tutorial
GitHub 4 年前
当前提交
bf7e198c
共有 2 个文件被更改,包括 1 次插入6 次删除
  1. 5
      tutorials/ros_unity_integration/subscriber.md
  2. 2
      tutorials/ros_unity_integration/unity_service.md

5
tutorials/ros_unity_integration/subscriber.md


- Attach the `RosSubscriberExample` script to the `RosSubscriber` GameObject and drag the cube GameObject onto the `cube` parameter in the Inspector window.
- From the Unity menu bar, open `Robotics/ROS Settings`, and set the `ROS IP Address` variable to your ROS IP.
- Unlike the previous tutorial, using a subscriber requires an incoming connection from ROS to Unity. You may need to adjust your firewall settings for this to work.
- The IP for Unity to listen on should be determined automatically, but if you're having trouble, you can set it manually in the `Override Unity IP` field. Finding the IP address of your local machine (the one running Unity) depends on your operating system.
- On a Mac, open `System Preferences > Network`. Your IP address should be listed on the active connection.
- On Windows, click the Wi-Fi icon on the taskbar, and open `Properties`. Your IP address should be listed near the bottom, next to "IPv4 address."
- Press play in the editor
### In ROS Terminal Window

2
tutorials/ros_unity_integration/unity_service.md


- From the main menu bar, open `Robotics/ROS Settings`, and change the `ROS IP Address` variable to the ROS IP.
- Create an empty GameObject and name it `UnityService`.
- Attach the `RosUnityServiceExample` script to the `UnityService` GameObject.
- Pressing play in the Editor should start running as a ROS node, waiting to accept ObjectPose requests. Once a connection to ROS has been established, a message will be printed on the ROS terminal similar to `ROS-Unity Handshake received, will connect to 192.168.50.130:5005`.
- Pressing play in the Editor should start running as a ROS node, waiting to accept ObjectPose requests. Once a connection to ROS has been established, a message will be printed on the ROS terminal similar to `Connection from 172.17.0.1`.
## Start the Client

正在加载...
取消
保存