ros-controls / ros2_control_demos

This repository aims at providing examples to illustrate ros2_control and ros2_controllers
https://control.ros.org
Apache License 2.0
392 stars 185 forks source link

carlikebot with teleop_twist_keyboard control #564

Closed 0jeetparmar0 closed 1 month ago

0jeetparmar0 commented 1 month ago

does anyone know how can i use teleop_twist_keyboard with carlikebot in ros2 humble

as this video uses teleop_twist with diff_bot robot

https://youtu.be/J02jEKawE5U?si=zKH39WVIPKfwr0t0

thanks and regards

christophfroehlich commented 1 month ago

Have you had a look into the readme of teleop_twist_keyboard? You need to remap the topic, and take care that you use the same settings for the stamped version of the twist message: use_stamped_vel is default false on humble, but also the default for the teleop_twist_keyboard's stamped parameter.

0jeetparmar0 commented 1 month ago

Have you had a look into the readme of teleop_twist_keyboard? You need to remap the topic, and take care that you use the same settings for the stamped version of the twist message: use_stamped_vel is default false on humble, but also the default for the teleop_twist_keyboard's stamped parameter.

thanks for response but i am new to ros and i can not understand how do i do it .....

christophfroehlich commented 1 month ago

The remap command is written in the first section of the readme, just use the topic necessary for the bicycle_steering_controller

ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap cmd_vel:=/bicycle_steering_controller/reference

If you have further questions, I suggest that you open a question on https://robotics.stackexchange.com/questions, because this topic is not related to our repository here.

0jeetparmar0 commented 1 month ago

The remap command is written in the first section of the readme, just use the topic necessary for the bicycle_steering_controller

ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap cmd_vel:=/bicycle_steering_controller/reference

If you have further questions, I suggest that you open a question on https://robotics.stackexchange.com/questions, because this topic is not related to our repository here.

ohkkkkk thansk a lot :)