mit-racecar / racecar_gazebo

A gazebo-based simulator of the MIT Racecar.
168 stars 98 forks source link

AckermnannDriveStamped is not being by subscribed anything #5

Open lharikrishnan1993 opened 7 years ago

lharikrishnan1993 commented 7 years ago

The file 'keyboard_teleop.py' is taking data from the keyboard. It works fine without any errors. The 'keyop' node is created, but there are no subscribers that make use of this data to visualize the change in Gazebo. I have no idea how to implement that. Could anyone please enlighten me about this?

rosgraph

screenshot from 2016-10-12 13 57 23

Any help is appreciated.

subodh-malgonde commented 6 years ago

@lharikrishnan1993 Were you able to figure this one out? I have the same question.

EDIT: I noticed that in the latest code the node keyop is not launched by any launch file. So I added a line to start this node in racecar_control.launch and now it is working.

EDIT 2: There is a launch file called teleop.launch. Its there in the racecar package. It takes care of launching all the required nodes. You don't have to change any code for teleop to work with simulation.

KursatCAKAL commented 5 years ago

@lharikrishnan1993 I have same problem.I think there is a problem related with wheel controllers if the simulator has no action despite your code working well. You can follow below steps.

Install "ros-kinetic-gazebo-ros-controllers" again

sudo apt-get install ros-kinetic-gazebo-ros-controllers

Sometimes ROS installation steps can be missing this package.

Your gazebo simulator running output must be below: image

Not this because of unsuccessful to load controllers correctly: image