本文共 3597 字,大约阅读时间需要 11 分钟。
分区 | 空间分配 | ||
---|---|---|---|
/ | ext4 | Pri- | 总空间的1/3 |
/boot | ext4 | Logi- | 200M |
swap | swap | Logi- | 4G |
/home | ext4 | Logi- | 剩余空间 |
2. 修改更新源。可搜索“ubuntu16.04源”,根据指引更改 sources.list内容,并联网更新。
可参考:
关于联网: 在Ubuntu系统下难以连接有线网的情况下(如公司环境),可外接 USB无线网卡解决问题。
可以启动试试:$ cd vrep/$ ./vrep.sh
3. 现在可以参考手册学习啦!
该软件的详细手册可见:
建议多看Shortcuts、Command line、Tutorials
Plugin ‘RosInterface’: loading… /home/bamboohuang/vrep/vrep: symbol
lookup error: /home/bamboohuang/vrep/libv_repExtRosInterface.so: undefined symbol: _ZN3ros4initERiPPcRKSsj
重新编译该库的流程:
sudo apt install git cmake python-tempita python-catkin-tools python-lxml default-jre xsltproc
参考V-REP User Manual 中的ROS tutorial – Indigo。
FYI:生成的文件主要在/devel/lib和 /src//bin中
参考V-REP User Manual → writing code in and around V-REP → V-REP API framework → ROS interface
若遇到问题:
Plugin ‘RosInterface’: loading… ROS master is not running. Cannot
start ‘ROS’ plugin.
请先启动ROS,再启动V-REP (即应先执行 roscore命令,再执行vrep.sh)
若遇到问题
Plugin ‘RosInterface’: loading… this plugin requires at least V-REP
3.4.0 rev9
你使用的应该是github上最新的版本,这对V-REP的版本要求较高。建议参考上面提到的ROS tutorial–Indigo,直接用自带的vrep/programming/ros_packages中的文件复制到catkin_ws/src/下进行编译;
当然也可以下载最新版本V-REP:www.coppeliarobotics.com/files/tmp若遇到下面问题,原因可能是没有正确安装interface:
Lua runtime error: [string “SCRIPT **“]:32: attempt
to call global ‘simExtRosInterface_publish’ (a nil value) stack traceback: [string “SCRIPT **“]:32: in main chunk
打开vrep 时若显示下面方框内的内容,则说明RosInterface 安装成功:
Open scene ,可以打开对应的 .ttt 文件。如果已经有现有工程,可以打开对应的ttt;没有的话,可以打开软件目录下的例程(参考Tutorial)
此时可以尝试在ROS侧获取vrep场景中的传感器数据,可以尝试下面的语句:
(注意将“/”后的topicname替换成自己的)rostopic list rostopic echo /laser_radar rqt_image_view 或者 rosrun image_view image_view image:=/zed_depth_image(为什么看到的图像是颠倒的?解决方案见E1)
rosrun rqt_publisher rqt_publisher
(一些或许对你有用的链接)
Ubuntu常用快捷键:
Ctrl+Alt+T
Alt+Tab 长按super可以看到快捷按键提示 : )
安装中文sogo输入法:
更新源 V-REP下载 V-rep手册 ROS安装 ROS Kinetic Kame: ROS Tutorials vrep_ros_bridge Create a ROS Workspace (catkin) roscore err: IOError: [Errno 13] Permission denied Lua 5.3 参考手册 Lua的string和string库总结:特别感谢徐宽的支持与帮助~