If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Graphics Guru questions
3 posts
• Page 1 of 1
Graphics Guru questions
Hi all,
I have some questions on building a small display box. I'm not a graphics guy by any means, and was wondering how to go about it, especially with the Ruby capabilities now.
I have a robot with distance feedback in inches from each wheel. I would like to take that inch data and display it on a graphic window, so that it's previous track could be viewed.
How would I go about doing this?
I have looked in the examples but couldn't really find anything applicable.
What I'm looking for is a box that could rotate based on a heading float input, and could move the box around in a window, with the old track displayed.
Any ideas? Does the user manual cover graphics like this?
I have some questions on building a small display box. I'm not a graphics guy by any means, and was wondering how to go about it, especially with the Ruby capabilities now.
I have a robot with distance feedback in inches from each wheel. I would like to take that inch data and display it on a graphic window, so that it's previous track could be viewed.
How would I go about doing this?
I have looked in the examples but couldn't really find anything applicable.
What I'm looking for is a box that could rotate based on a heading float input, and could move the box around in a window, with the old track displayed.
Any ideas? Does the user manual cover graphics like this?
- fixstuff555
- Posts: 151
- Joined: Thu Oct 21, 2010 3:24 pm
Re: Graphics Guru questions
Hi fixstuff,
The vector style graphics that can be programmed in Ruby would be ideal for this, as it works much like the old "Turtle"/'Logo' graphics where you can plot true arcs and lines that join end to end.
They're not quite finished yet, but the graphics programming classes that I'm working on might help with that, as they define commands for rotations, translations etc. that aren't there in the standard graphics methods.
The trickiest bit will probably be the 'dead-reckoning' of the position - but that depends what kind of moves your robot can make. I'm guessing from your post that it is 'tank style' - i.e. a wheel on each side where moving them at the same speed = straight line, and you control them independently to turn. If turning is limited to rotating on the spot, then that is easy, but for more gentle curves you need to know a little more geometry to work out the angle turned and the centre of rotation - something like on this web-page (the code is in 'C', i think, but the maths would convert to Ruby quite easily).
The vector style graphics that can be programmed in Ruby would be ideal for this, as it works much like the old "Turtle"/'Logo' graphics where you can plot true arcs and lines that join end to end.
They're not quite finished yet, but the graphics programming classes that I'm working on might help with that, as they define commands for rotations, translations etc. that aren't there in the standard graphics methods.
The trickiest bit will probably be the 'dead-reckoning' of the position - but that depends what kind of moves your robot can make. I'm guessing from your post that it is 'tank style' - i.e. a wheel on each side where moving them at the same speed = straight line, and you control them independently to turn. If turning is limited to rotating on the spot, then that is easy, but for more gentle curves you need to know a little more geometry to work out the angle turned and the centre of rotation - something like on this web-page (the code is in 'C', i think, but the maths would convert to Ruby quite easily).
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
Re: Graphics Guru questions
Thanks Trog! Your awesome
- fixstuff555
- Posts: 151
- Joined: Thu Oct 21, 2010 3:24 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 96 guests