Joystick currently produces joystick data mapped to topics /joy0, /joy1, etc. but chassis is controlled by joyDataLeft and joyDataRight in Chassis::chatterCallback(). Chassis should be rewritten to have a separate node to handle joystick-to-cmd_vel which is then subscribed to by the chassis control node (which is currently named Chassis::tank_drive()).
Update:
Joystick currently produces joystick data mapped to topics /joy0, /joy1, etc. but chassis is controlled by
joyDataLeft
andjoyDataRight
inChassis::chatterCallback()
. Chassis should be rewritten to have a separate node to handle joystick-to-cmd_vel which is then subscribed to by the chassis control node (which is currently namedChassis::tank_drive()
).