Skip to content

TheEngineRoom-UniGe/SofAR-Human-Robot-Collaboration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

SofAR-Human-Robot-Collaboration

UNITY INSTALLATION (WINDOWS)

  1. Visit https://unity3d.com/get-unity/download and download Unity Hub
  2. Through the Hub, install Unity 2020.2.2 (the version for which the projects have been developed) or later. Beware that later versions (eg. Unity 2021.1.x) may be incompatible with the projects

ROS VERSION USED FOR THE PROJECT: ROS Noetic

INSTALLATION AND SETUP:

  1. on UBUNTU:
    • Visit https://github.com/TheEngineRoom-UniGe/SofAR-Human-Robot-Collaboration and download the ROS packages needed for the project
    • Extract the packages to your catkin_ws
    • Open the 'human_baxter_collaboration' package, then navigate to config folder and open the params.yaml file. Under ROS_IP, insert the IP address of your machine.
    • Compile packages with catkin_make
    • Don't forget you need MoveIt framework for this project, thus visit https://moveit.ros.org/install/ and install the binaries
    • Once all dependencies are resolved, do: 'roslaunch human_baxter_collaboration human_baxter_collaboration.launch' to start MoveIt and communication with Unity (ensure the server communication is up and running, you should see the following line in the terminal 'Starting server on YOUR IP:10000')
  2. on WINDOWS:
    • In order to install the framework for human simulation, visit https://github.com/Daimler/mosim_core/wiki/InstallPrecompiled and follow the steps to install the precompiled framework.
    • Visit https://github.com/TheEngineRoom-UniGe/SofAR-Human-Robot-Collaboration to download the Unity project folder, extract it, then open Unity Hub and ADD the project to your projects list using the associated button.
    • Open the project
    • In the bar on top of the screen, open the Ros-TCP-Connection tab and replace the ROS_IP with the IP of the machine running ROS.
    • If the previous steps have been successful, you should be able to enter Editor mode (via the Play button) and play the simulation.
    • Il the communication is running correctly, on UBUNTU you can echo the topics that are being exchanged between ROS and Unity.
    • Happy planning!

TIPS

  1. If you experience a strange window when opening the Unity Project for the first time, simply do Quit, then reopen the project and it should not bother you further.
  2. Should you experience issues in the communication between ROS and Unity, especially when publishing FROM ROS TO Unity, remember to disable the firewall of your PC, as it could interfere with the sending of messages over TCP.
  3. When running your project, be sure to launch the ROS files BEFORE playing the Unity simulation, in order to have the server endpoint node up and running before initializing communication.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages