Python port of TRS: Teaching/Learning Robotics with a Simulator by Renaud Detry.
TRS is an open-source recipe that provides a template for starting a robotics project using VREP/CoppeliaSim using Python bindings. It is a port of the original recipe for MATLAB.
Please check the TRS website for more information about what is provided.
The paper summarizing this work has been presented at the Soft Computing Applications Conference, Arad - Romania, Nov 27 2020.
-
Download VREP/CoppeliaSim.
-
Edit
config.ini- SetVREPto the path to where CoppeliaSim is installed, andVREP_LIBRARYthe path to the remoteAPI file. This will beremoteApi.dll,remoteApi.dyliborremoteApi.sodepending on your plaform. Check the CoppeliaSim documentation on how to locate the path to the file for your platform.The following is a sample
config.inifor a Linux environment. This will change based on where you download the simulator!VREP: /home/aniruddha/CoppeliaSim/ VREP_LIBRARY: /home/aniruddha/CoppeliaSim/programming/remoteApiBindings/lib/lib/Ubuntu18_04/
-
Open the simulator and load the default scene -
scenes/house.ttt. -
Run the example.
python youbot.py
Examples showing a single task - such as moving the robot, controlling arm, taking a picture, etc. are included in the focused directory.
