/iRobot_0/cmd_vel???

asked 2020-08-12 13:10:55 -0500

NexxuSix gravatar image

updated 2020-08-12 13:13:27 -0500

Hello all, First light today! I finally got my iRobot Create 2 to boot, and do some very simple linear and angular movements with the command line. So, of course, wanting to go from there, I installed teleope_keyboard. I have used teleop_keyboard before on the Donkey Car, so I understand how it works.

The problem is, when I launch: rosrun teleop_twist_keyboard teleop_twist_keyboard, it loops looking for: “Waiting for subscriber to connect to /cmd_vel”

Now, if I do a rostopic list, all of my topics are listed like this: /iRobot_0/battery /IRobot_0/bumper ... /iRobot_0/cmd_vel ... Etc...

I think what the problem is, is that teleop is expecting a /cmd_vel subscriber, but really needs to find /iRobot_0/cmd_vel

Is there a way to either get rid of the “iRobot_0” from all of my topics, (I’m only running one iRobot) or... how do I tell teleop I want to operate iRobot_0 (I can see this being useful if I had two or more iRobots)

Any help or advice appreciated, and thank you in advance!

Cheers, -Michael

edit retag flag offensive close merge delete

Comments

You'll want to remap the /cmd_vel topic teleop_twist_keyboard is looking for.

Related: #q303611.

gvdhoorn gravatar image gvdhoorn  ( 2020-08-12 14:05:50 -0500 )edit