apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Show rostopic Error

Open Triangle001 opened this issue 8 years ago • 7 comments

Hello. After using the command "scripts/bootstrap.sh" to launch apollo,I want to see some data about a topic so execute the command "rostopic echo /apollo/localization/pose" , the result shows that: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' ERROR: Cannot load message class for [pb_msgs/LocalizationEstimate]. Are your messages built?

System information

  • OS Platform and Distribution (Linux Ubuntu 14.04):
  • Apollo version (3.0):

Can you help me please? Thanks.

Triangle001 avatar Aug 21 '18 09:08 Triangle001

1, Did you execute commads(rostopic echo /apollo/localization/pose ) in docker?

  1. Inadditional, if you just start Bootstrarp, that will setup monitor and dreamview module, apollo / localization / pose'doesn't have data, you need to rosplay`, or configure and start GNSS module.

mickeyouyou avatar Aug 21 '18 11:08 mickeyouyou

yes , I execute commads(rostopic echo /apollo/localization/pose ) in docker.You suggest me : 1.into docker 2.start Bootstrap.sh 3.start localization modules 4.rostopic echo /apollo/localization/pose

Triangle001 avatar Aug 21 '18 11:08 Triangle001

  1. Check whether those class definitions are under /apollo/py_proto
  2. Double check your environment variable PYTHONPATH to include the path to the msg class definition.

jilinzhou avatar Aug 28 '18 19:08 jilinzhou

whether the localization module work well also depends on the gps module , you may need run : bash roscore.sh start bash gps.sh start

wfgsy101 avatar Jan 01 '19 16:01 wfgsy101

I also have this problem, how did you solve this problem, thank @Triangle001

robocary avatar Oct 12 '19 07:10 robocary

Hi, I also got the same question when I want to record all the ros messages. Have you solved the problem? I have manually started all the related modules. Also, I am pretty sure all the class definations are under /apollo/py_proto and this path has been included to env PYTHONPATH.

ZiwenWan avatar Oct 31 '19 05:10 ZiwenWan

Stale issue closed. ROS based Apollo is no longer supported.

storypku avatar Nov 18 '20 04:11 storypku