ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

If you look at the source code of teleop you can see that there is communication through termios, tty. https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py

This is read by a serial communicator in your hardware. Your hardware may need their own programs. For example OpenCR that demos how hardware interacts with serial communication.

https://github.com/ROBOTIS-GIT/DynamixelSDK/issues/326

there are different protocols of communication, so this is just an example.

In Rosbot 2.0, you can see more info in your specs how this happens.. https://husarion.com/manuals/rosbot/#hardware-guide

Where is the code, you can find it in the repo, get familiar with the structure. As you can see in this link, other packages are used by Rosbot 2.0 telop_twist_keyboard: https://github.com/husarion/rosbot_description/blob/master/src/rosbot_navigation/launch/rosbot_teleop.launch

If you look at the source code of teleopteleop_twist_keyboard.py you can see that there is communication through termios, tty. https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py

This is read by a serial communicator in your hardware. Your hardware may need their own programs. For programs at the lower level. An example OpenCR that demos how hardware interacts with serial communication.using Dynamixel:

https://github.com/ROBOTIS-GIT/DynamixelSDK/issues/326

there There are different protocols of communication, so this is just an example. you need to understand that as well.

In Rosbot 2.0, you can see more info in your specs how this happens.. https://husarion.com/manuals/rosbot/#hardware-guide

Where is the code, you code? You can find it in the repo, get familiar with the structure. As you can see in this link, other packages are used by Rosbot 2.0 telop_twist_keyboard: https://github.com/husarion/rosbot_description/blob/master/src/rosbot_navigation/launch/rosbot_teleop.launch

If you look at the source code of teleop_twist_keyboard.py you can see that there is communication through termios, tty. https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py

This is read by a serial communicator in your hardware. Your hardware may need their own programs at the lower level. An example using Dynamixel:

https://github.com/ROBOTIS-GIT/DynamixelSDK/issues/326

There are different protocols of communication, so you need to understand that as well.

In Rosbot 2.0, you can see more info in your specs how this happens.. https://husarion.com/manuals/rosbot/#hardware-guide