首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使QGControl连接到同一局域网中的另一个主机上的凉亭模拟实例?

如何使QGControl连接到同一局域网中的另一个主机上的凉亭模拟实例?
EN

Stack Overflow用户
提问于 2019-03-11 02:40:41
回答 1查看 1K关注 0票数 0

我在另一个主机上运行了凉亭simu :192.168.10.11通过这个脚本:

!/bin/bash px4_dir=$(pwd) 源$px4_dir/Tools/setup_gazebo.bash $px4_dir $px4_dir/build/posix_sitl_default 源开发/setup.bash导出ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$px4_dir/Tools/sitl_gazebo ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$px4_dir导出 roslaunch px4 posix_sitl.launch

控制台输出如下:

代码语言:javascript
复制
GAZEBO_PLUGIN_PATH :/home/x-man/Firmware/build/posix_sitl_default/build_gazebo
GAZEBO_MODEL_PATH :/home/x-man/Firmware/Tools/sitl_gazebo/models
LD_LIBRARY_PATH /home/x-man/catkin_ws/devel/lib:/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnu:/usr/local/lib:/home/x-man/Firmware/build/posix_sitl_default/build_gazebo
... logging to /home/x-man/.ros/log/b80d9922-4396-11e9-a728-0800273e9aa6/roslaunch-x-test-6238.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://x-test:43745/

SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.14
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    sitl (px4/px4)
    vehicle_spawn_x_test_6238_688026835630494011 (gazebo_ros/spawn_model)

auto-starting new master
process[master]: started with pid [6294]
ROS_MASTER_URI=http://localhost:11311

...
process[vehicle_spawn_x_test_6238_688026835630494011-5]: started with pid [6322]
INFO  [px4] Creating symlink /home/x-man/Firmware/ROMFS/px4fmu_common -> /home/x-man/.ros/etc
0 WARNING: setRealtimeSched failed (not run as root?)

______  __   __    ___ 
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
  SYS_AUTOSTART: curr: 0 -> new: 10016
  BAT_N_CELLS: curr: 0 -> new: 3
  ...
  PWM_MAX: curr: 2000 -> new: 1950
  PWM_MIN: curr: 1000 -> new: 1075
INFO  [dataman] Unknown restart, data manager file './dataman' size is 11798680 bytes
INFO  [simulator] Waiting for simulator to connect on TCP port 4560
SpawnModel script started
...
[ INFO] [1552265046.945923218]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
...
[ INFO] [1552265049.043329814, 0.112000000]: Physics dynamic reconfigure ready.
[vehicle_spawn_x_test_6238_688026835630494011-5] process has finished cleanly
log file: /home/x-man/.ros/log/b80d9922-4396-11e9-a728-0800273e9aa6/vehicle_spawn_x_test_6238_688026835630494011-5*.log

在QGroundControl->settings>Comm链接中,我尝试通过不同的端口创建到此主机的TCP链接(192.168.10.11):

43745 11311 4560

但都失败了,所以问题是:

如何使用gqcontrol连接到同一局域网中另一个主机上的凉亭仿真实例?

EN

回答 1

Stack Overflow用户

发布于 2019-03-13 07:09:16

解决方案在pix讨论论坛:http://discuss.px4.io/t/how-to-make-qgcontrol-connect-to-gazebo-simulation-instance-in-another-host-in-same-lan/9941

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55094575

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档