How to load autoware_msgs?

asked 2020-09-29 12:09:54 -0500

sneibus gravatar image

updated 2020-09-30 01:19:59 -0500

mgruhler gravatar image

Hi guys, Im having issue publishing the data from topics for example vehicle cmd topic?

$ rostopic echo /vehicle_cmd
ERROR: Cannot load message class for [autoware_msgs/VehicleCmd]. Are your messages built?

Any one has an ideas how to resolve this plzzzz. thank you

edit retag flag offensive close merge delete

Comments

Are your messages built?

Are they (or are they installed)? is autoware_msgs on your ROS_PACKAGE_PATH?

mgruhler gravatar image mgruhler  ( 2020-09-30 01:20:37 -0500 )edit

they seem to be installed. Don't they come by default when installing autoware?

sneibus gravatar image sneibus  ( 2020-09-30 04:33:08 -0500 )edit

What do you mean by "install autoware"? Installed from apt or from source or using docker? Please show the link you followed for the installation procedure.

Is the package on your ROS_PACKAGE_PATH? Can you roscd autoware_msgs?

mgruhler gravatar image mgruhler  ( 2020-09-30 04:44:04 -0500 )edit

Roscd autoware_msgs gives me no packages/stack of such existing. So i basically installed ros melodic following this:http://wiki.ros.org/melodic/Inst... Installed autoware 1.12 following this: https://github.com/Autoware-AI/autowa...

And now i would like publish the vehicle_cmd but also being being able to control it ..

sneibus gravatar image sneibus  ( 2020-09-30 05:37:14 -0500 )edit

you probably haven't sourced the built workspace. source <PATH_TO_WORKSPACE>/devel/setup.bash or source <PATH_TO_WORKSPACE>/install/setup.bash in every terminal

mgruhler gravatar image mgruhler  ( 2020-09-30 07:07:04 -0500 )edit

i have. i do run that before starting roscore or running autoware ...

sneibus gravatar image sneibus  ( 2020-09-30 07:17:51 -0500 )edit

edit your question and post the output of env | grep ROS please

mgruhler gravatar image mgruhler  ( 2020-09-30 07:18:59 -0500 )edit

This is the output of env | grep ROS

ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=melodic
sneibus gravatar image sneibus  ( 2020-10-07 03:56:42 -0500 )edit