Simulated Turtlebot doesn't move straight path

6 ビュー (過去 30 日間)
Jakub Tomasiak
Jakub Tomasiak 2020 年 7 月 21 日
編集済み: Jakub Tomasiak 2020 年 7 月 21 日
Hello,
I am using ROS Toolbox™ Support Package for TurtleBot based Robots. I installed virtual machine with Linux (ROS and Gazebo in it) and I succesfully connected with robot by Matlab.
My question is: is this normal, that simulated Turtlebot, which should be geometrically ideal, don't move in straight line?
Like in tutorial I just set linear velocity in X axis and send it request to move for a few second, but its path is not straight, and it starts slowly turn to one side. Should it be like this? I understand it could happend in real robots, where you have to implement some PID controller, but should the robot behave like this in simulation?
Thanks for any help.

採用された回答

Cam Salzberger
Cam Salzberger 2020 年 7 月 21 日
Hey Jakub,
I have also observed this in my Gazebo simulation of the TurtleBot (actually of a few different versions of the TurtleBot). Based on a quick search, it seems that there could be any number of causes, indcluding the physics simulation being unable to keep up with the simulation rate, the TurtleBot model having minor collisions or imbalances causing drift, or even an intentional drift to better represent the real TurtleBot's tendency to drift.
I do not believe that the issue lies within the support package or ROS code. TurtleBot, like most robots, requires feedback control to ensure that it moves as directed.
-Cam
  1 件のコメント
Jakub Tomasiak
Jakub Tomasiak 2020 年 7 月 21 日
Thank you very much for answer!
Then I'll try to add some controller action to my code to eliminate this error.
Have a nice day :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetwork Connection and Exploration についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by