How to subscribe to vehicle_cmd?

asked 2020-09-24 11:38:57 -0600

sneibus gravatar image

I have installed ros melodic and autoware 1.12 on ubuntu 18.04 2 and struggling: the vehicle_cmd it seems to be subscribe but still shows as 0 ?? any guidance would be very much appreciated as i'm really struggling

edit retag flag offensive close merge delete

Comments

1

You're going to have to be more specific about what "it" is that "seems to be subscribe". Do you mean publish? Additionally, there are many ways to generate output in vehicle_cmd. You'll have to give us the list of nodes that you are running. An rqt_graph while you're running your stack would be even more helpful.

Josh Whitley gravatar image Josh Whitley  ( 2020-09-24 11:45:57 -0600 )edit

both published and subscribed topics list show the vehicle_cmd however when I try to print info from vehicle_cmd it states 0 0.0 . I could send you screenshot details not sure how to put them in here.

sneibus gravatar image sneibus  ( 2020-09-24 12:44:25 -0600 )edit

You seem unhappy it is 0 0 0. What do you think it should be?

billy gravatar image billy  ( 2020-09-24 15:22:07 -0600 )edit

i really don't know what to expect. I just want to see if anyone know how i can control the vehicle?

sneibus gravatar image sneibus  ( 2020-09-24 15:34:59 -0600 )edit

OK, we're making progress. You're not sure what is supposed to publish to that topic to make the car go? Why don't you provide more information about what you're trying to do, as suggested above by Josh?

billy gravatar image billy  ( 2020-09-25 00:07:45 -0600 )edit

Yes. I want to get autoware setup so the vehicle drives the demo route as it should be. As currently it doesn't as I suspect maybe the launch files aren't setting everything properly.

sneibus gravatar image sneibus  ( 2020-09-25 03:52:01 -0600 )edit