Skip to content

Commit

Permalink
Removed lidar. (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
imisaacwu authored Dec 14, 2023
1 parent a1edb14 commit a7d9d32
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 208 deletions.
52 changes: 0 additions & 52 deletions Assets/Scenes/Simulator.unity
Original file line number Diff line number Diff line change
Expand Up @@ -984,57 +984,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
_frontWheel: {fileID: 1182672565}
_rearWheel: {fileID: 1365518639}
--- !u!1 &1119198587
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1119198588}
- component: {fileID: 1119198589}
m_Layer: 6
m_Name: Lidar Sensor
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1119198588
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1119198587}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.3, z: 0.3}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2999561474658698673}
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1119198589
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1119198587}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 47334de10e0723b41b9fb478268edce9, type: 3}
m_Name:
m_EditorClassIdentifier:
_range: 12
_resolution: 100
_scanPeriod: 0.1
_noiseIntensity: 0.05
_roverMask:
serializedVersion: 2
m_Bits: 64
_showGizmos: 0
--- !u!1 &1122966450
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -2899,7 +2848,6 @@ Transform:
- {fileID: 1141722567}
- {fileID: 97750368}
- {fileID: 1935106304}
- {fileID: 1119198588}
m_Father: {fileID: 0}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand Down
125 changes: 0 additions & 125 deletions Assets/Scripts/LidarSensor.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Assets/Scripts/LidarSensor.cs.meta

This file was deleted.

22 changes: 2 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git push origin --tags
```

## Overview
This simulator creates a WebSocket client to connect directly to the rover WebSocket server at the URL `ws://localhost:3001/simulator`. The simulator will automatically connect to the rover server and reconnect as needed, providing a visual indication of the connection status. The simulator and the rover server communicate with each other by sending JSON objects termed *messages* over the WebSocket connection. Through these messages, the rover server can request that the simulator perform certain actions, such as set a a motor's power. Additionally, the simulator provides the rover server with data such as camera streams and lidar data through these messages.
This simulator creates a WebSocket client to connect directly to the rover WebSocket server at the URL `ws://localhost:3001/simulator`. The simulator will automatically connect to the rover server and reconnect as needed, providing a visual indication of the connection status. The simulator and the rover server communicate with each other by sending JSON objects termed *messages* over the WebSocket connection. Through these messages, the rover server can request that the simulator perform certain actions, such as set a a motor's power. Additionally, the simulator provides the rover server with data such as camera streams through these messages.

## Using the Simulator
1. Download the latest release for your operating system.
Expand Down Expand Up @@ -40,7 +40,6 @@ The simulator is able to simulate the cameras with the following names:
The simulator is also able to simulate the following hardware devices:
- GPS sensor
- IMU
- Lidar sensor

## Messages
The JSON objects sent between the simulator and the rover server are termed *messages*. Each message has a type property and a number of additional parameters depending on the type. Each type is prefaced with "sim" to avoid confusion with messages pertaining to Mission Control. The usage of each type of message is detailed below.
Expand Down Expand Up @@ -231,21 +230,4 @@ Sent from the simulator to inform the rover server of the orientation provided b
- `x` - The x-component of the orientation
- `y` - The y-component of the orientation
- `z` - The z-component of the orientation
- `w` - The w-component of the orientation

## Lidar Data Report
### Description
Sent from the simulator to inform the rover server of data provided by a simulated lidar sensor.

### Syntax
```
{
type: "simLidarReport",
points: { r: number, theta: number }[]
}
```

### Parameters
- `points` - an array of points in polar coordinates read by the simulated lidar sensor
- `r` - the distance between a point and the rover in meters
- `theta` - the angle of a point in [0, 2π) measured from the rover's forward direction and increasing counterclockwise
- `w` - The w-component of the orientation

0 comments on commit a7d9d32

Please sign in to comment.