Friday, 18 November 2016

Video 04: Python Robot Simulation with V-Rep | V-rep Tutorial

04: Python Robot Simulation with V-Rep | V-rep Tutorial
04: Python Robot Simulation with V-Rep | V-rep Tutorial
Title : 04: Python Robot Simulation with V-Rep | V-rep Tutorial
Duration : 01:01:13
Channel : Nikolai K.
Label : Python (Programming Language), Application Programming Interface (Literature Subject), Pioneer P3DX, differential drive, robot simulation, Robotics, tutorial, v-rep, step-by-step, obstacle avoidance, simulation, pythonxy, spyder
04: Python Robot Simulation with V-Rep | V-rep Tutorial
04: Python Robot Simulation with V-Rep | V-rep Tutorial
04: Python Robot Simulation with V-Rep | V-rep Tutorial
04: Python Robot Simulation with V-Rep | V-rep Tutorial

Step-by-step robot simulation with Python and V-Rep with obstacle avoidance of a Pioneer 3DX differential drive robot. This video shows you how to connect Python with V-rep and how to write a simple obstacle avoidance script in python that randomly drives a Pioneer P3DX around a scene, while avoiding obstacles. It's no Google self-driving car, but it gets the job done. Within the tutorial I will go over how to set up the V-rep Python connection, retrieve object handles, control robot acutators, read proximity sensors, and retrieve and display images in python. The video will provide you with a rough script that can get your Python V-rep project started. I will also show you how to use the list of remote API Python functions located at: http://www.coppeliarobotics.com/helpFiles/en/remoteApiFunctionsPython.htm The final python script and the corresponding v-rep scene file can be downloaded at: http://www.edisondev.net/VREP/04PythonTutorial The python(x,y) distribution can be downloaded for free at: https://code.google.com/p/pythonxy/wiki/Downloads The Virtual Robotics Experimentation Platform (V-REP) simulator, can be downloaded for free at: http://www.coppeliarobotics.com/ . The contents that are covered include: 00:00 - Introduction 01:22 - Setting up the V-Rep scene 06:22 - Python x,y and Spyder overview and download 09:20 - Setting up the V-rep Python workspace files 14:11 - Running a simple test script 16:11 - Python code to establish communication with V-Rep 21:07 - Retrieving object handles in python (actuators) 26:32 - Setting actuator velocities 30:34 - Reading Proximity Sensors 38:17 - Ultrasonic sensor reading explanation 39:32 - Retrieve Image Data from V-Rep into Python 44:49 - Displaying Images with the matplotlib python library 50:20 - Obstacle avoidance script explanation 51:25 - Pre-allocation code explanation 55:30 - Looping code and robot controller 01:00:23 - Final obstacle avoidance result and conclusion

No comments:

Post a Comment