Search found 16 matches
- 30 Apr 2022, 02:49
- Forum: General questions
- Topic: How to display simulation time
- Replies: 2
- Views: 328
Re: How to display simulation time
Thanks, just what I was looking for!
- 29 Apr 2022, 13:14
- Forum: General questions
- Topic: How to display simulation time
- Replies: 2
- Views: 328
How to display simulation time
Hi!
How can I show the simulation time using a timer/clock graphical display?
How can I show the simulation time using a timer/clock graphical display?
- 30 Mar 2022, 16:02
- Forum: General questions
- Topic: Drawing a line on path travelled
- Replies: 3
- Views: 297
Re: Drawing a line on path travelled
Thanks for getting back.
I am trying to get a line onto the surface over the path the youbot has moved over and stays there until the sim is ended, similar to the one I have made in the image attached below:
https://ibb.co/xmcscXN
I am trying to get a line onto the surface over the path the youbot has moved over and stays there until the sim is ended, similar to the one I have made in the image attached below:
https://ibb.co/xmcscXN
- 29 Mar 2022, 16:19
- Forum: General questions
- Topic: Drawing a line on path travelled
- Replies: 3
- Views: 297
Drawing a line on path travelled
Hi! I'm trying to draw a line on the surface that my YouBot will move over. From what I've searched, I've learned that the following function will have to be used for that: sim.addDrawingObject I've managed to create a code using this, I don't get any error from this, but I also don't get any line d...
- 16 Mar 2022, 18:39
- Forum: General questions
- Topic: YouBot Measure Rotation
- Replies: 7
- Views: 605
Re: YouBot Measure Rotation
The angles that I'm getting are just four: -89, +89, -90 & +90. I'm not getting them between -180 to 180. I have attached the recording below.
https://youtu.be/5kBh9uC6ADI
https://youtu.be/5kBh9uC6ADI
- 15 Mar 2022, 19:52
- Forum: General questions
- Topic: YouBot Measure Rotation
- Replies: 7
- Views: 605
Re: YouBot Measure Rotation
What's happening is that I'm trying to get the relative angle between the turns. I am trying to make every turn 90 degrees. But after for example for the 1st turn, the angle that gets printed is still 90, meaning it's giving me global angle and not relative, and thus instead of turning, it keeps goi...
- 14 Mar 2022, 20:15
- Forum: General questions
- Topic: YouBot Measure Rotation
- Replies: 7
- Views: 605
Re: YouBot Measure Rotation
Hi! Thanks for getting back to me. I used the code that you provided. I'm trying to run my bot in a closed loop, for example a rectangle, made of right angled turns, like whenever the bot has walked for a specific distance, it turns and stops when the rotation reaches 90, then same for the next turn...
- 04 Mar 2022, 08:30
- Forum: General questions
- Topic: YouBot Measure Rotation
- Replies: 7
- Views: 605
YouBot Measure Rotation
Hi! I'm trying to rotate my YouBot by 90 degrees. Previously I've been doing that using time based rotation, by stopping the rotation after a specific time (for example sim.wait(12)). But with this method, the rotation is inaccurate. How can I measure the rotation? I can check the rotation against 9...
- 10 Feb 2022, 18:04
- Forum: General questions
- Topic: YouBot Movement
- Replies: 3
- Views: 404
Re: YouBot Movement
Thanks for getting back.
Is there any simpler way to achieve this? I can't quite understand the script you mentioned above.
Why isn't the code that I attached working? The robot should stop once the distance travelled equals the distance it should travel(from table).
Is there any simpler way to achieve this? I can't quite understand the script you mentioned above.
Why isn't the code that I attached working? The robot should stop once the distance travelled equals the distance it should travel(from table).
- 10 Feb 2022, 13:06
- Forum: General questions
- Topic: YouBot Movement
- Replies: 3
- Views: 404
YouBot Movement
Hi! I'm trying to make my YouBot travel a certain distance and then stop. I am importing a csv file which contains x y coordinates. After that, I want the robot to start and then stop once the required distance is achieved. In the code which I'm using, the robot doesn't stop, it keeps on going. The ...