关于开机自启动qbo服务的讨论

37 篇文章 0 订阅
17 篇文章 0 订阅

http://openqbo.org/forum/viewtopic.php?f=4&t=488

1. It appears that you have to launch QBO_Webi when you start/restart Q.bo's computer. Is there a way for Ubuntu to automatically run the “roslaunch qbo_webi qbo_webi.launch” command at start-up?

2. I am now able to start the QBO_Webi (localhost:7070) after I manually launch it, but the default sign-on user and passwords (qbobot; QboPass; admin) are not accepted. I should tell you that I have not received my Q.bo kit yet so I am running the webi without any of the Q.boards or devices connected. I can see the device timeouts in the Terminal launch of Qbo_Webi, but I don't know why that would cause problems with the sign-on.


Hello everyone

Let me resume all this for you. There is a ROS package called "qbo_launchers" that, as Valkyr said, manages the nodes which are executed upon launching the operating system. There are two main files in this package:

* qbo_start_service - this file is a initialization script executed by Ubuntu init daemon upon the boot of the operating system.
* qbo_startup.launch - this is a launch file that defines the ROS nodes which are executed at the startup. You can find it in the "launch" folder of the ROS package

So, upon bootings, this is what happens:
"Ubuntu init daemon" --calls-> "qbo_start_service" --executes--> "qbo_startup.launch"

So, basically, if you want to define which ROS nodes should be executed at startup,you only have to change the "qbo_startup.launch", Please don't change the "qbo_start_service", as it will always execute the "qbo_startup.launch".

However, you have to execute the following commands so that the Ubuntu init daemon calls the qbo_start_service at startup:

Code: Select all
sudo ln -s /opt/ros/electric/stacks/qbo_stack/qbo_launchers/qbo_start_service /etc/init.d/
sudo update-rc.d qbo_start_service defaults 99


You only have to execute these commands one time and in the following reboots, the qbo_start_service daemon will be called.

An important note: if you install the qboros-electric-qbo-launchers deb package (using Synaptic or sudo apt-get install), you can skip the previous commands, because the installation will execute those commands for you. So, be careful not to execute these commands if you already installed the qboros-electric-qbo-launchers deb package

8-bit, regarding the main topic, by default, the qbo_launchers will execute the following nodes upon booting:

qbo_arduqbo
qbo_listen
qbo_talk
qbo_webi
qbo_camera nodes (/stereo/uvc_camera_stereo and /stereo/stereo_proc)

Since the Q.bo are shipped with the qbo_launchers installed, they all will launch the qbo_webi upon startup. If you want to change which nodes are executed upon the booting of Q.bo (as Valkyr already did), just edit the qbo_startup.launch file.

Arturo

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值