BaronYSYong / vrep-python

Python Robot Simulation with V-Rep Tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Robot Simulation with V-Rep

Environment

Reference

How to Start?

V-REP

  • Drag and drop UR3 into screen
  • Right click on redundantRobot and select Add -> Associated child script -> Threaded
  • Open the script and print below to the script
simExtRemoteApiStart(19999)
  • Start the simulation

Terminal

  • clone this repository
$ cd ~/github
$ git clone https://github.com/BaronYSYong/python-vrep.git
$ cd python-vrep
  • copy the necesarry files to working directory from V-REP python
$ cp ~/V-REP_PRO_EDU_V3_4_0_Linux/programming/remoteApiBindings/python/python/* . 
  • copy the share object from V-REP library (If your V-Rep is 64 bits)
$ cp ~/V-REP_PRO_EDU_V3_4_0_Linux/programming/remoteApiBindings/lib/lib/64Bit/* .
  • Test the server and client by runnning
$ python simpleTest.py
  • If the connection is OK, next try
$ ipython -i vrepManipulator.py

In IPython, try command below:

>>> UR = Manipulator()
>>> UR.MoveJoints([0,0,0,0,90,0])
>>> UR.ReadJoints()
>>> UR.GetJointInfo()
>>> LBR = Manipulator(robot_name='LBR_iiwa_14_R820')
>>> LBR.MoveJoints([45,90,90,45,90,0])

About

Python Robot Simulation with V-Rep Tutorial


Languages

Language:Python 100.0%