An Unity3D project built for an interface for Oculus Quest 2 and, with the help of ROS-sharp package, for transmitting messages of headsets and joysticks in ROS message type.
- This repository is one part of my whole marslite project. The main repository should be launched with the corresponding Docker environment.
- This repository does not support VR image rendering for headset, but this feature could possibly be appended in future.
- Windows 7 or above
- Unity Hub with editor version: 2022.3.9f1
- Oculus PC application
/unity/joy/left [Sensor/Joy]
- joy inputs of the left joystick based onUnity
frame/unity/joy_pose/left [Geometry/PoseStamped]
- pose of the left joystick based on the frame of the robotic arm (tm_base
)
Step 1. Download the ROS workspace and follow the instructions in README.md
Once the project has been launched, delete the current scene and drag Assets/Scenes/RosSharpCommunicationScene
to hierarchy
.
- Click on the
RosConnector
object and guide to theRos Connector (Script)
component. - Select the
Protocol
asWeb Socket Sharp
if using Windows 7 or lower, or asWeb Socket NET
if using Windows 8 or higher. - Change the IP address in
Ros Bridge Server Url
as the IP address of your Ubuntu PC/VM. The url format should bews://<IP_ADDRESS_>:9090
.
[TODO] Finish this part