04-18-2013 08:03 AM
Hello,
I have a robot daNI and I am using the dead reckoning mapping system on it. It is available on the NI site. I am trying to build a path for the robot. Basically the small dot on the map would leave a line behind. This is to see where it went. I tried feeding back the information of the position to the initial position but it dod not work. Does anyone have any idea why?
Thanks
A.
Solved! Go to Solution.
04-18-2013 08:05 AM
Try this link, it is about finding the position using the wheel velocities https://decibel.ni.com/content/docs/DOC-17273
04-18-2013 08:11 AM
yea I am using this one. But it is only showing a XY grid with a dot on it. The dot moves on the grid as the robot moves. I want the dot on the grid to leave a line behind it in order to build a path of the of where it goes.
04-22-2013 03:42 AM
Hi N3utrin0,
Looking at that example VI, it plots the instantaneous position (both estimated and actual) on an XY graph.
To display the path that's been taken, you'll need to find a way of retaining that information, so that it's constantly displayed on the graph.
Alternatively there's a lot you could do with a 2D picture control to draw out the path.
I've written and attached an example using a 2D picture control to retain a path defined by X and Y movements. This should be relatively easy for you to integrate into the robotics example.
Let me know if this is helpful, or if you get stuck.
Kind regards,
04-22-2013 04:46 AM
Hi N3utrino,
I've managed to cobble together a quick example of what I meant (See attached).
It's crude but it should be nearly there in terms of what you want.
Kind regards,
Josh
04-22-2013 04:46 AM
Oh, just noticed you marked my last post as solved! Thanks a lot!