How to view osrf car_demo's topics in another terminal?

asked 2020-03-30 12:17:07 -0500

JoshuaSiy gravatar image

updated 2020-03-30 13:15:51 -0500

Hello,

I typed ./run_demo.bash and i can now see the simulator and is able to control the vehicle by keyboard. However no topics are available after opening another terminal and attempting to listen to the rostopics.

My objective is to be able to publish velocity commands and subscribe to odometry .

I would appreciate any advice you can give and i am new to docker containers and i am unsure what to do.

Reference used: https://github.com/osrf/car_demo

edit retag flag offensive close merge delete

Comments

Hi @JoshuaSiy,

The demo is executed inside the docker container. Hence you will need to call rostopic list command inside the container itself. You can enter in the container by running docker exec -it container_id bash in a terminal, where the container_id can be found using the docker ps -a command

Weasfas gravatar image Weasfas  ( 2020-04-04 11:39:33 -0500 )edit