Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to model Turtlebot3_Segway ? #297

Open
swgu931 opened this issue Feb 9, 2022 · 4 comments
Open

how to model Turtlebot3_Segway ? #297

swgu931 opened this issue Feb 9, 2022 · 4 comments

Comments

@swgu931
Copy link

swgu931 commented Feb 9, 2022

Hello!

I appreciate your valuable works especially turtlebot3 and segway.
I wanted to find the turtlebot3 segway modeling before designing controller but I cannot find it inside of the source code below.
https://github.com/ROBOTIS-GIT/OpenCR/tree/master/arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_friends/turtlebot3_segway

I am doubtful that you control the turtlebot3_segway without any modeling but heuristic or "trial and error" approach.

Thanks in advance for your help.

@ROBOTIS-Will
Copy link
Contributor

Hi @swgu931

Thank you for your interest in TurtleBot3 Friends!
You can find the modeling of the segway from TurtleBot3 eManual below.
https://emanual.robotis.com/docs/en/platform/turtlebot3/locomotion/#turtlebot3-friends-segway
Thank you!

@swgu931
Copy link
Author

swgu931 commented Feb 11, 2022

I mean the model that you control with PID controller, namely the state space equations or funtional equation for control engineers.
The following could be one of examples.
x_dot = Ax + Bu
y = Cx

Thanks.

@ROBOTIS-Will
Copy link
Contributor

Hi @swgu931

The PID controller model of the example is tuned heuristically based on the IMU pitch reading of the TurtleBot3 Segway.
Thank you.

@swgu931
Copy link
Author

swgu931 commented Feb 28, 2022

I made the similar one that you tested on the youtube. you can see the picture.
I have two questions below.

  1. what is the right one about x, y direction of IMU on the OpenCR board ?
    The picture on the below was my current alignment.
  2. The value of P, I, D in the source code is your final tuned value, isn't it ?

image

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants