Open lharikrishnan1993 opened 7 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.
@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:
Not this because of unsuccessful to load controllers correctly:
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?
Any help is appreciated.