Skip to content

Commit e9f67e0

Browse files
LaurieCheers-unitymrpropellers
authored andcommitted
Update tutorial text (#148)
1 parent d990645 commit e9f67e0

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

tutorials/ros_unity_integration/publisher.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Once the server_endpoint has started, it will print something similar to `[INFO]
3939
```csharp
4040
using RosMessageTypes.RoboticsDemo;
4141
using UnityEngine;
42-
using Random = UnityEngine.Random;
42+
using Unity.Robotics.ROSTCPConnector;
4343

4444
/// <summary>
4545
///
@@ -49,14 +49,14 @@ public class RosPublisherExample : MonoBehaviour
4949
ROSConnection ros;
5050
public string topicName = "pos_rot";
5151

52-
// The GameObject
52+
// The game object
5353
public GameObject cube;
5454
// Publish the cube's position and rotation every N seconds
5555
public float publishMessageFrequency = 0.5f;
5656

5757
// Used to determine how much time has elapsed since the last message was published
5858
private float timeElapsed;
59-
59+
6060
void Start()
6161
{
6262
// start the ROS connection

tutorials/ros_unity_integration/service.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ Once the server_endpoint has started, it will print something similar to `[INFO]
3939
- **Note:** This script can be found at `tutorials/ros_unity_integration/unity_scripts`.
4040

4141
```csharp
42-
using System;
4342
using RosMessageTypes.RoboticsDemo;
4443
using UnityEngine;
45-
using Debug = UnityEngine.Debug;
44+
using Unity.Robotics.ROSTCPConnector;
4645

4746
public class RosServiceExample : MonoBehaviour
4847
{

tutorials/ros_unity_integration/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Once ROS Core has started, it will print `started core service [/rosout]` to the
5656

5757
## Unity Scene
5858
1. Launch Unity and create a new scene.
59-
2. Open Package Manager and click the + button at the top left corner. Select "add package from git URL" and enter "https://github.com/Unity-Technologies/ROS-TCP-Connector.git" to install the [ROS TCP Connector](https://github.com/Unity-Technologies/ROS-TCP-Connector) package.
59+
2. Open Package Manager and click the + button at the top left corner. Select "add package from git URL" and enter "https://github.com/Unity-Technologies/ROS-TCP-Connector.git?path=/com.unity.robotics.ros-tcp-connector" to install the [ROS TCP Connector](https://github.com/Unity-Technologies/ROS-TCP-Connector) package.
6060

6161
![](images/add_package.png)
6262

tutorials/ros_unity_integration/subscriber.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Once the server_endpoint has started, it will print something similar to `[INFO]
3333

3434
```csharp
3535
using UnityEngine;
36+
using Unity.Robotics.ROSTCPConnector;
3637
using RosColor = RosMessageTypes.RoboticsDemo.UnityColor;
3738

3839
public class RosSubscriberExample : MonoBehaviour

0 commit comments

Comments
 (0)