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

How to move the robot (Rosbot 2.0)

asked 2021-09-27 07:29:42 -0500

choking gravatar image

Hi, I'd like to know how to move the robot.

when I give a /cmd_vel, the robot can move appropriately.

But, I'd like to know HOW.

I know the /com_vel go to geometry_msgs/Twist.

After that? How to calculate the motor speed, voltage, or torque?

which node does this?

I can't find any code from my Rosbot 2.0 file directories.

I want to watch the code file. where is it?

please help me.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2021-09-27 11:49:22 -0500

osilva gravatar image

updated 2021-09-27 12:29:33 -0500

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:

If you look at the source code of you can see that there is communication through termios, tty.

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:

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..

edit flag offensive delete link more


Thank you for your kind!

But, Even if it runs appropriately. I can't find in my robot.

I want to know where is the code file in my robot.

And, I'd like to motor torque information for my experiment.

Where can I find the lower-level controller in my robot?

Is it possible to get the input torque information?

choking gravatar image choking  ( 2021-09-27 21:08:54 -0500 )edit

Your robot uses teleop_twist_keyboard it’s called by the launch file. I also sent a link of the specs of your robot for the low level hardware. Check the last link

osilva gravatar image osilva  ( 2021-09-27 21:40:13 -0500 )edit

From the manual. Software for ROSbot can be divided into 2 parts:

A low-level firmware that works on the real-time controller (CORE2). It can be developed using Visual Studio Code IDE.

OS based on Ubuntu 18.04 or 20.04, which runs on the SBC (ASUS Tinker Board or UpBoard) and contains all components needed to start working with ROS or ROS2 immediately. The microSD card or MMC memory with OS is included with each ROSbot. The OS has been modified to make the file system insensitive to sudden power cuts.

osilva gravatar image osilva  ( 2021-09-27 21:56:19 -0500 )edit

And the link to the firmware:

osilva gravatar image osilva  ( 2021-09-27 22:01:57 -0500 )edit

Thank you, sir! I will try to study the lower-level system.

choking gravatar image choking  ( 2021-09-28 07:51:59 -0500 )edit

Glad it helped. Pls don’t forget to vote if you got what you were looking for

osilva gravatar image osilva  ( 2021-09-28 08:50:41 -0500 )edit

Question Tools

1 follower


Asked: 2021-09-27 07:29:42 -0500

Seen: 223 times

Last updated: Sep 27 '21