apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Cannot see any car image in the Dreamview or see any trajectory.

Open tomzhang666 opened this issue 9 years ago • 39 comments

Hi All,

I successfully finish all the instructions for the demo, but when I switch into Dreamview window, there is neither car image nor trajectory such as in the readme when I rosbag play -l.

I can see the bag file playing, but there's nothing showing on the localhost:8888. Has anyone encounter same problem as me ?

Thanks!

tomzhang666 avatar Jul 05 '17 08:07 tomzhang666

I found out the problem. When I run the HMI, and rosnode list, there is none. thats why there's no image at all..but I dont know how to solve it yet.

tomzhang666 avatar Jul 05 '17 08:07 tomzhang666

@tomzhang666 there are two bag files inside the docker. Did you try to run it ? I'm on the same boat with you. Still trying to figure what the problem is.

Did you successfully run bash docker/scripts/release_into.sh ?

Mine got an error not finding the bash: /opt/ros/indigo/setup.bash: No such file or directory

Any idea ?

andrewraharjo avatar Jul 05 '17 08:07 andrewraharjo

thats not my problem. your problem seems that you didn't install ros in your computer?

tomzhang666 avatar Jul 05 '17 09:07 tomzhang666

@tomzhang666 got it working, permission issue again, just run the bash docker/scripts/release_into.sh as sudo

andrewraharjo avatar Jul 05 '17 09:07 andrewraharjo

@tomzhang666 Did you source /opt/ros/indigo/setup.bash in your bashrc?

Capri2014 avatar Jul 05 '17 09:07 Capri2014

Yes. And I can even run roscore in the docker, but nothing shows up when i run rosnode list...

On Wed, Jul 5, 2017 at 2:09 AM Capri2014 [email protected] wrote:

@tomzhang666 https://github.com/tomzhang666 Did you source /opt/ros/indigo/setup.bash in your bashrc?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ApolloAuto/apollo/issues/14#issuecomment-313046905, or mute the thread https://github.com/notifications/unsubscribe-auth/AVEmfTOCEzNgfxzOYsyLSua-vSSU3crGks5sK1K3gaJpZM4ON_8X .

-- Zhengyu Zhang Master of Engineering Candidate (Experiential Advanced Control) Department of Mechanical Engineering Tel:(970)-889-7323 Email:[email protected] LinkedIn: https://www.linkedin.com/in/zhengyu-zhang-163666102

tomzhang666 avatar Jul 05 '17 09:07 tomzhang666

@tomzhang666 Sorry I mean you should not source your host computer /opt/ros/indigo/setup.bash, use the one under third_party in docker.

Capri2014 avatar Jul 05 '17 09:07 Capri2014

nice

Got it working @tomzhang666 try to run the rosbag play under root@in_release_docker. See hopefully it will work out. Also the browser I'm running is Chromium. Somehow I can't run it on Firefox. I'll do some digging later on.

andrewraharjo avatar Jul 05 '17 09:07 andrewraharjo

@Capri2014 Can you specify the steps a bit more? I still didn't get it work. Its super weird, when I run hmi.sh, the command window told me that it start roscore, but when I try to check the rosnode list, there's nothing in it. Thats why I cannot see anything in my browser.

I think I have got this error because the docker setting? I am very new to docker, so any help would be very appreciated.

tomzhang666 avatar Jul 05 '17 09:07 tomzhang666

@tomzhang666 After installing docker, do you logout and login again? Try docker ps without sudo. If it is not docker sudo problem, inside docker env, can you post the output of cat /apollo/meta.txt?

Thanks.

ycool avatar Jul 05 '17 13:07 ycool

@ycool No such file exist

tomzhang666 avatar Jul 05 '17 18:07 tomzhang666

@ycool screenshot from 2017-07-05 12 02 09 this is my problem

tomzhang666 avatar Jul 05 '17 19:07 tomzhang666

chrome browser is needed

smilejx avatar Jul 05 '17 22:07 smilejx

Try chrome browser too. It doesn't work

On Wed, Jul 5, 2017 at 3:48 PM smilejx [email protected] wrote:

chrome browser is needed

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ApolloAuto/apollo/issues/14#issuecomment-313247735, or mute the thread https://github.com/notifications/unsubscribe-auth/AVEmfbKrPjsGTXrqmpFws3FRpjicPJa2ks5sLBKtgaJpZM4ON_8X .

-- Zhengyu Zhang Master of Engineering Candidate (Experiential Advanced Control) Department of Mechanical Engineering Tel:(970)-889-7323 Email:[email protected] LinkedIn: https://www.linkedin.com/in/zhengyu-zhang-163666102

tomzhang666 avatar Jul 05 '17 22:07 tomzhang666

@tomzhang666 from your screen picture, you are using dev docker image. It need build from source code

bash /apollo/apollo.sh build # inside docker

The easier way to run demo is to follow the instruction at https://github.com/ApolloAuto/apollo/blob/master/docs/demo_guide/README.md

ycool avatar Jul 05 '17 23:07 ycool

I have met the same problems whatever in dev environment(bash docker/scripts/dev_start.sh) or release environment(bash docker/scripts/release_start.sh). After run the following command in apollo_release container:

/apollo# rosbag play docs/demo_guide/demo.bag --loop

[ INFO] [1499320503.064749970]: Opening docs/demo_guide/demo.bag

Waiting 0.2 seconds after advertising topics... done.

Hit space to toggle paused, or 's' to step.
 [RUNNING]  Bag Time: 1497125269.806705   Duration: 0.664225 / 41.613536
 [RUNNING]  Bag Time: 1497125270.017747   Duration: 0.875267 / 41.613536
 [RUNNING]  Bag Time: 1497125270.216592   Duration: 1.074112 / 41.613536
 [RUNNING]  Bag Time: 1497125270.407049   Duration: 1.264569 / 41.613536
 [RUNNING]  Bag Time: 1497125285.516865   Duration: 16.374386 / 41.613536
 [RUNNING]  Bag Time: 1497125285.697003   Duration: 16.554523 / 41.613536
 [RUNNING]  Bag Time: 1497125285.917519   Duration: 16.775039 / 41.613536
 [RUNNING]  Bag Time: 1497125286.076830   Duration: 16.934350 / 41.613536
 [RUNNING]  Bag Time: 1497125286.286546   Duration: 17.144066 / 41.613536
 [RUNNING]  Bag Time: 1497125309.316678   Duration: 40.174199 / 41.613536

I can open the "HMI Setup" page and Dreamview page,but no vehicle or trajectory shows. the screen snapshot are below:

2017-07-06 1 11 38

2017-07-06 2 03 14

bigwhite avatar Jul 06 '17 06:07 bigwhite

@bigwhite in release docker, can you post the output of cat /apollo/meta.txt? While rosbag is playing, in another terminal, insider release docker, can you help to post the output of rostopic list ?

ycool avatar Jul 06 '17 06:07 ycool

@tomzhang666 Probably you can just open a terminal and run that rosbag cmd.

For me that worked. However if I ran that cmd in docker, I would have some problems like no rosbag cmd can be found or (after I fixed it) some python dependencies were missing.

nypdmax avatar Jul 06 '17 07:07 nypdmax

@ycool

# cat apollo/meta.txt
Git commit: 0264461
Build time: 20170704_1141

one terminal run the demo:

/apollo# rosbag play docs/demo_guide/demo.bag --loop
[ INFO] [1499349615.786847156]: Opening docs/demo_guide/demo.bag

Waiting 0.2 seconds after advertising topics... done.

Hit space to toggle paused, or 's' to step.
 [RUNNING]  Bag Time: 1497125297.452324   Duration: 28.309844 / 41.613536

on another terminal:

# docker exec 8d06c801cd4a /apollo/ros/bin/rostopic list
Traceback (most recent call last):
  File "/apollo/ros/bin/rostopic", line 34, in <module>
    import rostopic
  File "/apollo/ros/lib/python2.7/dist-packages/rostopic/__init__.py", line 63, in <module>
    import rosgraph
  File "/apollo/ros/lib/python2.7/dist-packages/rosgraph/__init__.py", line 36, in <module>
    from . masterapi import Master, MasterFailure, MasterError, MasterException
  File "/apollo/ros/lib/python2.7/dist-packages/rosgraph/masterapi.py", line 49, in <module>
    from rospy.impl.broadcast_manager import BroadcastManager
  File "/apollo/ros/lib/python2.7/dist-packages/rospy/__init__.py", line 49, in <module>
    from .client import spin, myargv, init_node, \
  File "/apollo/ros/lib/python2.7/dist-packages/rospy/client.py", line 60, in <module>
    import rospy.impl.init
  File "/apollo/ros/lib/python2.7/dist-packages/rospy/impl/init.py", line 54, in <module>
    from .tcpros import init_tcpros
  File "/apollo/ros/lib/python2.7/dist-packages/rospy/impl/tcpros.py", line 45, in <module>
    import rospy.impl.tcpros_service
  File "/apollo/ros/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 65, in <module>
    from broadcast_manager import BroadcastManager
  File "/apollo/ros/lib/python2.7/dist-packages/rospy/impl/broadcast_manager.py", line 56, in <module>
    for sub_path in env.split(':'):
AttributeError: 'NoneType' object has no attribute 'split'

bigwhite avatar Jul 06 '17 13:07 bigwhite

On another terminal, instead of running $ docker exec 8d06c801cd4a /apollo/ros/bin/rostopic list, can you run following commands?

$ docker/scripts/release_into.sh
$ rostopic list # inside docker

Thanks.

ycool avatar Jul 06 '17 14:07 ycool