google-colaboratory - google colab 连接 VREP 远程 api 失败
问题描述
我想使用 google colab 中的 python 远程 api 连接到 VREP。我尝试在 jupyter notebook 中运行下面的示例代码,它正在运行。但是,当我更改为 google colab 时,即使代码相同,远程 api 也无法连接到 VREP。
import vrep
vrep.simxFinish(-1)
clientID = vrep.simxStart('127.0.0.1', 19997, True, True, 500, 5)
if clientID != -1: # if we connected successfully
print ('Connected to remote API server')
else:
print('Fail to connect')
解决方案
推荐阅读
- influxdb - 从 influxdb 查询一个月内服务器的工作和非工作时间平均/百分比利用率
- android - 应用更新后未收到设备 ID - FCM Firebase
- angular - 列表数组转换为对象
- java - Spring xml文件引用服务问题
- php - 避免 $ 在 php 上签名以从 json 打印数组值
- intellij-idea - 我无法在 IntelliJ Idea 中设置 Spring Social ShowCase 项目
- linux - 同时使用 wget 进行多个下载
- ubuntu-18.04 - 如何从快照应用程序中打开终端?
- python - Python编程_,看不懂这是什么代码
- android - 如何使用 android studio 和 android-box 调试 android TV 应用程序?