apollo icon indicating copy to clipboard operation
apollo copied to clipboard

如何在docker image下使用rqt_graph

Open ahuer2435 opened this issue 9 years ago • 10 comments

您好, 在docker image下,我想使用rqt_graph,但是提示找不到命令,想问下如何才能在docker image下使用此命令?

ahuer2435 avatar Sep 29 '17 00:09 ahuer2435

@ahuer2435 在apollo项目中,我们只选取了ros的一个运行支持最小集,rqt_graph没有包含在其中。后续我们会尝试集成更多ros工具,方便大家使用。

fengqikai1414 avatar Sep 30 '17 02:09 fengqikai1414

请问,现在可以单独安装使用rqt_graph?

ahuer2435 avatar Oct 10 '17 00:10 ahuer2435

你可以试一下 $ rosrun rqt-graph rqt-graph

jinpingfan avatar Oct 12 '17 05:10 jinpingfan

提示错误,找不到包: [rospack] Error: package 'rqt-graph' not found

ahuer2435 avatar Oct 12 '17 05:10 ahuer2435

Here is the workaround:

To view the nodes. Follow the following Steps:

Add the following line after line 100 in docker/scripts/dev_start.sh: “ -e DISPLAY=unix$DISPLAY \”

Enter your docker container and run:

sudo apt-get update sudo apt-get install ros-indigo-rqt ros-indigo-rqt-common-plugins source /opt/ros/indigo/setup.bash

You can new run rqt

layssi avatar Nov 07 '17 16:11 layssi

Unfortunately, this workaround does not work for me:

Even after modifying dev_start.sh according to your description, sudo apt-get install ros-indigo-rqt just returns

/apollo$ sudo apt-get install ros-indigo-rqt
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-indigo-rqt

Does anybody know why apt-get cannot find the corresponding package?

sscit avatar Dec 18 '17 09:12 sscit

Try running sudo apt-get update, or add the keys (http://wiki.ros.org/indigo/Installation/Ubuntu)

Alternatively, you can run rqt on your local machine using your existing installation (if you have ros).

Also, Keep in mind that rqt does not recognize pb messages.

layssi avatar Dec 18 '17 18:12 layssi

Thanks for your reply, adding the repos and keys of ROS worked for me.

Alternatively, you can run rqt on your local machine using your existing installation (if you have ros).

Yes, I will try this, too, because apt-get does not update the ros version within folder "apollo" anyway, it creates a "fresh" checkout in /opt/ros/ .

sscit avatar Dec 18 '17 20:12 sscit

Hi: When I run rqt_graph, it opens a "rqt_graph__RosGraph-rqt" window but shows no image.

screenshot from 2018-05-08 19-16-35 screenshot from 2018-05-08 19-18-01

Zoltan3057 avatar May 08 '18 11:05 Zoltan3057

solution: #1572

Zoltan3057 avatar May 10 '18 06:05 Zoltan3057