前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >V-Rep随手笔记

V-Rep随手笔记

作者头像
zhangrelay
发布2019-01-23 15:33:26
6810
发布2019-01-23 15:33:26
举报

首先,确保高效的文档阅读。问题查找,资料归纳能力,是一切科研工程的必备基础。

有问题,或者此处文档不全,立刻用右边查找进行检索如果没有,请一定确保有!!!

论坛是宝,要善于使用http://www.forum.coppeliarobotics.com/

使用Ubuntu 18.04,如果出现错误,请参考:

Dear all, I've had the same problem with Ubuntu 18.04. Today I've tried to install a few packages on a "new" installation, and somehow managed to get V-REP working! The packages I installed were: - sudo apt-get install libboost-all-dev (surely people have installed it already, so this should not be the problem!) - sudo apt-get install lua5.1 - sudo apt-get install liblua5.1-0 - sudo apt-get install liblua5.1-0-dev (maybe this could be a problem, the "default" lua in Ubuntu 18.04 appears to be 5.2 or 5.3......) - sudo apt install qtcreator - sudo apt-get install qt5-default (maybe this could help....but maybe not....) QScintilla 2.10.7 from: https://www.riverbankcomputing.com/soft ... a/download After download and expand, the commands necessary were: - qmake  - make - sudo make install (so I've had to install first qmake, part of qtcreator and qt5: see above!) After that, vrep started to work!!!! Hope you enjoy! Best regards, Joao Fabro

You need to install also libqt5serialport5-dev which is not pulled in by qt5-default. See also this issue https://github.com/voidlinux/void-packages/issues/5254 for fixing additional build errors (namely: error stdlib.h: no such file or directory) caused by gcc 6 + qmake

--http://ahundt.github.io/--

Intro to V-REP

23 August 2015

Here is some basic information for getting started with the robot simulator V-REP. Since the organization of their documentation could use some improvement, I’ll go over some of the key links and other important information. It is also worth loading up some of their demo scenes, which you can see with file>open scene... It should default to the folder with lots of examples. Key V-REP Links I’ll give a few links to some important parts. Be sure to take note of the icons they have at the top of their page, because they are key to matching up between their interface and what button to actually push.

  • Interface overview
  • calculation properties dialog where their internal inverse kinematics configuration can be configured, for example.
    • script dialog is how you look at what scripting is built into a simulation
    • child scripts are how to manipulate objects in lua, this is the easiest thing to use and can be added by right clicking on an object > add > scripts > threaded child script
  • Full API Function List is the most useful page of all once the basics are covered is the full API function list:

One of the keys to V-REP is child scripts, which you can see the icon for it at the link. Those are the small lua scripts you can modify, plus you may need a one liner in there to activate the remote API. Interacting with objects in VREP Programmatically If you’ve used any old GUI systems, you’ll be familiar with the handle system VREP uses. Essentially, physical objects in the simulation can be represented as a string or an integer “handle” which is an index into an internal lookup table V-REP stores. You pass those handles to the VREP API functions to perform a scripted action like changing joint angles on an object. Remote APIs, MATLAB, Python This is their page for the remote APIs. I haven’t tried the MATLAB API or any other remote/external API myself. It is also worth noting remote APIs have reduced performance and a reduced set of functions when compared to the lua and C/C++ APIs that I use. Of the external APIs, if you know python that may also be worth considering over MATLAB because it has an equally complete set of scientific libraries and doesn’t depend on a license. For those using the UR5 robot, I believe the cisst UR5 library is accessible from python although I haven’t used it personally. Python + Studywolf blog While not related to V-REP directly, the study wolf blog has a series of FANTASTIC tutorials on kinematics and control in pythonwith code. The information on that blog is useful for understanding some of the underlying robotics concepts utilized by V-REP. At the bottom of each page on the studywolf blog you can browse more of his articles specifically. Using V-REP and matlab to simplify coursework One more interesting link I came across uses V-REP and matlab to simplify coursework called TRS. lua APIs and matrices In case it is useful, luamatrix provides a set of pure lua matrix functions. I haven’t tried it but it did take some time to find so I figured I’d share that. Also, How to integrate an external lua library can be found in the V-REP forums. Scene Hierarchy The Scene Hierarchy is the list of objects on the left-hand side of V-REP with things that are already in your simulation. Sometimes there will be a tab indentation of one object to the bottom right of the other, this is particularly obvious when you look at an arm and how all the indentations slant to the right from top to bottom. This Indentation means that the object is represented in the coordinate frame of the parent object, so if you for example rotate the first link of the arm all the child links are moved with it. I used this in combination with dummy objects for my system. Dummy objects are useful because they provide a physical frame that you can see in the simulation to attach your objects to and move everything relative to. For example with my bone which had an optical tracker fiducial attached, I put a dummy object a position where the fiducials control point is I made the bone a child that so then when I move the bone The optical tracker would detect that and set the position of the dummy the new detected position on the bone with corresponding we move in the simulation to it’s real time position. Conclusion Hopefully that is a decent amount of starter info pointing to some of the key items!

推荐一本英文教程:现代机器人学,理论和实践相结合,案例具体详细,使用V-Rep

--http://hades.mech.northwestern.edu/index.php/V-REP_Introduction--

--http://hades.mech.northwestern.edu/index.php/Modern_Robotics--

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年10月11日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Intro to V-REP
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档