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

how to create a circular trajectory for turtlebot 3

asked 2019-12-31 10:18:13 -0500

alaaeddine gravatar image

updated 2022-01-22 16:10:13 -0500

Evgeny gravatar image

hey everyone.

i want to create a Gazebo simulation where turtlebot3 following a circular trajectory .

please help .

edit retag flag offensive close merge delete

Comments

hey, did you find what you were looking for? i am working on the same project, it'd be great if you can help.

Rohan10 gravatar image Rohan10  ( 2020-06-09 03:12:00 -0500 )edit

sorry for late the response , if you still don't know how to implemented you can follow this GitHub repository https://github.com/alla-eddine/trajec... i hope you will find it helpful . salam.

alaaeddine gravatar image alaaeddine  ( 2020-09-10 12:15:15 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2020-01-03 03:56:26 -0500

duck-development gravatar image

Drive with an constant angular speed an you bot is driving a circular triactory

edit flag offensive delete link more

Comments

thank you for your reply but this is not the answer i looking for ! i need to create a reference circular path with a pre-defined radius R with : x(t) = R * SIN( 2 * PI * t / dt) y(t) = -R * COS( 2 * PI * t / dt) then drive the turtlebot along with this trajectory

alaaeddine gravatar image alaaeddine  ( 2020-01-03 15:57:30 -0500 )edit
1

@alaaeddine These answers answer your question. Your question looks a lot like an assignment that you are asking others to do for you. If you need help figuring out how something works please ask your question but it's inappropriate to ask others to solve the problem for you.

https://wiki.ros.org/Support

tfoote gravatar image tfoote  ( 2020-01-03 17:57:22 -0500 )edit
0

answered 2020-01-02 22:08:06 -0500

ed gravatar image

updated 2020-01-04 16:16:08 -0500

jayess gravatar image

Since you are using turtlebot3 I assume you have installed turtlebot3_simulations package. This package has turtlebot3_gazebo package with the launch file turtlebot3_house.launch or turtlebot3_empty_world.launch. chapter 11 of the turtlebot3 manual has a goot example.

The just publish a cmd_vel topic with linear velocity = 0 and angular velocity = 1.57 or maybe -1.57 using rostopic like this

rostopic pub -r 10 /cmd_vel geometry_msgs/Twist  '{linear:  {x: 0.0, y: 0.0, z: 0.0}, angular: {x: 0.0,y: 0.0,z: 1.57}}'

you probably need to play with what angular velocity value to use. if you use a linear velocity as well you will get a spiral

edit flag offensive delete link more

Comments

thank you for your reply but this is not the answer i looking for ! i need to create a reference circular path with a pre-defined radius R with : x(t) = R * SIN( 2 * PI * t / dt) y(t) = -R * COS( 2 * PI * t / dt) then drive the turtlebot along with this trajectory

alaaeddine gravatar image alaaeddine  ( 2020-01-03 16:00:50 -0500 )edit

The method is helpful but the values are not quite correct.

With a constant angular velocity: A zero linear velocity will cause it to spin in place. A constant linear velocity will cause it to drive in a circle. An increasing linear velocity will spiral outward A decreasing linear velocity will spiral inward.

tfoote gravatar image tfoote  ( 2020-01-03 18:00:07 -0500 )edit
0

answered 2021-01-18 19:45:31 -0500

I found an amazing video for this - you can have a look at - https://youtu.be/2WBDRbYmE7A

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-12-31 10:18:13 -0500

Seen: 1,771 times

Last updated: Jan 04 '20