V-Rep随手笔记

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

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

论坛是宝,要善于使用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--

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 在线matlab代码学习神器Octave Online

    Octave与MATLAB完全兼容,免安装使用方便。注册和非注册功能会有不同,如下:

    zhangrelay
  • 在线matlab代码学习神器Octave Online

    Octave与MATLAB完全兼容,免安装使用方便。注册和非注册功能会有不同,如下:

    zhangrelay
  • Gazebo機器人仿真學習探索筆記(三)機器人模型

    gazebo_models:https://bitbucket.org/osrf/gazebo_models

    zhangrelay
  • CentOS下redis集群安装

    环境: 一台CentOS虚拟机上部署六个节点,创建3个master,3个slave节点

    肖哥哥
  • HashMap探索01-源码注解翻译

    当时好奇HashMap与ConcurrentHashMap,在网上找资料时发现基本都是相关的源码分析,想自己看看JDK里面具体有些什么,于是有了这个系列,信马由...

    汐楓
  • Docker常用软件安装之Redis

      我们首先需要在root/myredis/conf/redis.conf目录下创建redis.conf配置文件。

    用户4919348
  • 通俗易懂 empowered RL

    Inspired by examples from the animal kingdom, social sciences and games the ...

    用户1908973
  • CentOS下redis集群安装

    环境: 一台CentOS虚拟机上部署六个节点,创建3个master,3个slave节点

    肖哥哥
  • kafka-0.10.0官网翻译(一)入门指南

    1.1 Introduction Kafka is a distributed streaming platform. What exactly does th...

    intsmaze-刘洋
  • SAP UI5和React的页面渲染性能比较

    I have been working as a Fiori application developer and nowadays I have read qu...

    Jerry Wang

扫码关注云+社区

领取腾讯云代金券