ros-controls / ros_controllers

Generic robotic controllers to accompany ros_control
http://wiki.ros.org/ros_control
BSD 3-Clause "New" or "Revised" License
547 stars 524 forks source link

[diff_drive_controller] subscribe to another topic #590

Closed VivienSayan closed 2 years ago

VivienSayan commented 2 years ago

Hello,

How can I subscribe to another topic aside from /cmd_vel ? When I try to add a subscriber to the diff_drive_controller.cpp, compilation works but during simulation, it seems that there is no subscriber for my topic. Can I even subscribe to another topic ? I'm running on Ubuntu 16.04 and my ROS version is kinetic