We need our most skilled and motivated students on this team! The tasks include:
1. Install MRDS and become familiar with the software.
2. Create a robot in the simulation environment that has a camera and a laser range finder (LRF).
3. Have the camera recognize orange pylons.
4. Use bearing information from the camera, and add range data from the LRF to locate all pylons.
- LRF should also find other obstacles that are not pylons.
5. Write a vector-fields-histogram (VFH) algorithm to avoid obstacles and move in the direction of pylons.
6. Work with the sensor team to incorporate real sensor data.
7. Work with the embedded team to write a driver for our microcontroller.
8. There are many more sensors and algorithms that we can incorporate, but we must first complete the above tasks!
Rehman
***EDIT***
I decided to just reinstall instead of wasting time trying to fix it...
**********
Hello all...
My simulation environment has decided to not listen to port 50000 once again. This is exactly what happened last time. The program is working fine and suddenly, I try to run a simulation and I get this error:
*** Initialization failure: Could not start HTTP Listener.
The two most common causes for this are:
1) You already have another program listening on the
specified port
2) You dont have permissions to listen to http requests.
Use the httpreserve command line utility to run using a non-administrator
account.
And after that error you may get two messages:
Exception message: Access is denied OR Only one usage of each socket
address (protocol/network address/port) is normally permitted.
Being a very lucky individual, I have received both errors. The access denied means I am not the administrator (EVEN THOUGH I AM!) and the second one means another thing is already listening to port 50000. I used netstat -a -p tcp in command prompt to check which services are listening to 50000 and 50001 and there ARE none! Then I do everything http://msdn.microsoft.com/en-us/library/dd939179.aspx tells me to do and I just keep going back and forth between those errors. -.- And sometimes when I try to remove 50000's reservation it won't let me: "unable to remove port 50000". THIS IS KILLING ME!! Last time this happened, I had to uninstall and reinstall MVS and MRDS...don't tell me I have to do that again. ANY FORM OF HELP WILL BE APPRECIATED! PREFERABLY IF YOU CAN COME IN AND FIX IT IN PERSON.
Thank you in advance,
Tina
Hi guys,
I was reading through the rules and such thoroughly today and discovered that we have to take care of IR filtering if necessary ourselves. That is, if the sun is opposite to us, it could slightly blind our camera. I'm not sure if this is really an area of concern or if it doesn't really affect the image processing, but I just wanted to make sure you guys know about this.
-Also, it appears that they expect us to use headlights in the tunnel because it says on the website something along the lines of "it will be difficult to navigate through the tunnel without the usage of headlights"; something along those lines. Tunnel will be painted black on the inside and the outside, so maybe we can help our robot go in the tunnel by sending it some kind of signal when it detects a huge black blob.
-We are also allowed to place objects outside the drag race track (drag race is just a straight, long track) or at the end of the track to help our robot find its way. We are not allowed to use orange objects (because they look like pylons) but we can use a big blue circle or something to guide "Da Boss" (who came up with that name?!?).
-In addition, the race will occur under light rain/drizzle conditions but not if its heavy rain. Not sure how rain will affect image processing, but probably not much?
-Also, we don't have to worry about the traffic light if we can figure out how to program our robot to correspond to its time sequence, which is 3s pause after start, then 90s GREEN, 30s RED, 90s GREEN, 30s RED and repeating. Or it might just be easier to detect red/green blobs.
-Finally, if we're pointing our LRF or camera down, we may be faced with difficulties when we go up inclines ("there may be inclines of less than 15% (i think they mean degrees) on the track") because we won't be able to see as wide of a view.
That's it for now.
Tina
Simulation for Brendan's code is now working. We did the following to get the simulation working:
1. We used MRDS R3 as opposed to R2.
2. If you have a x64 Win, then you have to use dsshost32.exe to run the simulation.
3. Make sure you have all the missing .dll's that Brendan had.
Soren/Tina
Good stuff.
I’m running 32-bit Windows. My last unresolved error yesterday was in a post-build macro that referred to dsshost32.exe. From this page http://promrds.com/Updates.htm I gather I should instead be using DssHost.exe. Will look at this again in a couple days, keep the tips coming,
Thx,
Joe
maybe I should've mentioned that you should run the simulation in DSS Command Prompt from the project directory:
dsshost32.exe /port:50000 /manifest:"[projectname].manifest.xml"
I started doing some services tutorials. When you go to the control panel, you find a list of all the services available on MRDS. Here are some that look promising for image processing:
- "Blob Tracker" :"Description: Finds specific blobs (regions) within an image for simple color tracking."
- ColorSegment: "Description: The ColorSegment Service"
- Explorer: "Description: Provides access simple exploration behavior for a robot using a differential drive, bumpers, and a laser range finder."
- Follower: "Description: Provides access to a set of services that support simple visual tracking, speech recognition, text-to-speech, and obstacle avoidance."
- Ip Camera: "Description: Provides access to an IP camera." [Note: not sure what an IP camera is but =/ ]
- Math Functions: "Description: Provides access to simple mathematical functions."
- Microsoft GPS-360: "Description: Provides GPS data in NMEA 0183 output format."
- Webcam: "Description: Captures images from an attached camera."
Tina
Scroll all the way down for a list of 15 free tutorials:
http://idealprogrammer.com/videos/microsoft-robotics-development-studio-...
Here's what Zongyi said:
"...
Hello. I have my own VFH code but it is untested. I do not know how well it will perform if at all, so I moved to looking at coreSlam from openSlam. Out of all the methods on openSlam, it looked the most promising for the laser rangefinder, but after downloading the code and looking through it, I realized that I have very little clue on how to use it.
I also tried doing some simulations in Robotics Studio, but it hasn't been too fruitful. I'm feeling that I'm reading the wrong tutorials. There are tutorials that involve real robots and interactions with buttons and such, and then there are simulation tutorials. I have been doing a lot of simulation tutorials, and so far I can't seem to get it to work. I'm having obscure problems like Visual Studio not having the "DSS New Service wizard". In addition, looking far ahead into the tutorial I'm following, there doesn't even seem to be a place where I can place my code, so I'm pretty lost here.
It would probably save a lot of time if someone who has already got it to work would write a short readme or something listing the steps they took.
At the moment, I moved away from debugging my own code or trying to wrestle with robitics studio. Instead, I'm currently trying to figure out how to use the openSlam coreSlam code.
Zongyi
..."
Heres a good starting point for MRDS. Unfortunately, the Microsoft tutorials are rather inadequate. There is a series of 3 on the following website beginning with the one linked. The third tutorial is where the bulk of the useful code is and shows you how powerful MRDS can really be.
http://www.devx.com/dotnet/Article/32729
brendanW
Make sure you briefly go over C# before you start the tutorial!
Good tutorial for C#
http://www.functionx.com/csharp/index.htm (the chapters are on the left side)
There's some interesting tutorials on Simple Vision, which is included in MSRS.
Quoting Jessica Xie:
"Here's how you do it:
You open Microsoft DSS Manifest Editor-> Click Help -> Click Contents -> Samples -> Technology Samples-> C#
You should be able to find all the samples."
It would be a good idea to take a look and follow the steps in the tutorials.
Good luck,
Tina
Everyone, please post where you are with the robotics studio and update us frequently. This way everyone can know what everyone else is doing and if anyone is ahead, we can learn from that person.
Thank you.
This is what Joe has found for image processing:
Quoting Joe:
>> - Spent some hours on http://www.emgu.com/wiki/index.php/Main_Page (.NET wrapper for Open CV) and had problems >> with build errors I could not fix.
>> - Spent a little time on http://www.aforgenet.com/ .NET Computer Vision library & the samples worked fine, so >> at this point I like it better. Starting to explore functionality.
I remember Joe mentioned the Multimedia Lab in the meeting. I'm not sure of their willingness to help us, but I'll look into it.
Soren
Hey all,
Here's a failLog of my efforts to get rid of the LineFollowingDemo build errors, in case it helps anyone else, since others have also gotten stuck building projects.
1) DL’d the project from http://www.devx.com/dotnet/Article/38954
2) The project refused to install because I do not have the July 2008 CTP version of RDS installed (I have the new R3 version).
3) Got the project from Soren but it doesn’t build – lots of errors, mostly regarding references.
4) Re-added the Emgu.CV references (from Solution Explorer, see which references are not found – the ones with the yellow marking – remember which they are, right-click & remove them, locate the new ones & add them)
5) Re-added the RDS references.
6) Did not see zlib.net.dll used in the code so I deleted this reference.
My last remaining error on build is:
Error 1 Cryptographic failure while signing assembly 'C:\Users\Joseph\Desktop\LineFollowing\LineFollowing\obj\Debug\LineFollowing.Y2010.M05.dll' -- 'Error reading key file 'c:\Users\soren\microsoft robotics dev studio 2008 r3\samples\mrisamples.snk' -- The system cannot find the path specified. ' LineFollowing
7) Searched my system for this file and found it at C:\Users\Joseph\Microsoft Robotics Dev Studio 2008 R3\samples\mrisamples.snk.
8) Went to Project -> LineFollowing Properties... -> Signing -> Sign the assembly and unchecked “Sign the assembly”. This caused a different error:
Error 1 The command ""C:\Users\Soren\Microsoft Robotics Dev Studio 2008 R3\bin\dssproxy.exe" /dll:"C:\Microsoft Robotics Dev Studio 2008 R3\bin\LineFollowing.Y2010.M05.dll" /proxyprojectpath:"C:\Users\Joseph\Desktop\LineFollowing\LineFollowing\Proxy" /keyfile:"C:\Users\Soren\Microsoft Robotics Dev Studio 2008 R3\samples\mrisamples.snk" /binpath:"." /referencepath:"C:\Users\Soren\Microsoft Robotics Dev Studio 2008 R3\ "" exited with code 3.
9) Signed the assembly with my local C:\Users\Joseph\Microsoft Robotics Dev Studio 2008 R3\samples\mrisamples.snk & got the same error.
10) Went to Project -> LineFollowing Properties... -> Build Events -> Edit Post-build… and found the referencepath :"C:\Users\Soren\Microsoft Robotics Dev Studio 2008 R3\ " in the post-build macro:
"C:\Users\Soren\Microsoft Robotics Dev Studio 2008 R3\bin\dssproxy.exe" /dll:"$(TargetPath)" /proxyprojectpath:"$(ProjectDir)Proxy" /keyfile:"$(AssemblyOriginatorKeyFile)" $(ProxyDelaySign) $(CompactFrameworkProxyGen) /binpath:"." /referencepath:"C:\Users\Soren\Microsoft Robotics Dev Studio 2008 R3\ "
11) searched my system for dssproxy.exe and found it at C:\Users\Joseph\Microsoft Robotics Dev Studio 2008 R3\bin\dssproxy.exe.
12) edited the the Post-Build macro with my local path to dssproxy.exe and got the following 1 warning & 3 errors:
Warning 1 The contract identifier contains the string 'tempuri.org'. You should consider changing it to a more specific value. C:\Users\Joseph\Desktop\LineFollowing\LineFollowing\** dssproxy LineFollowing
Error 2 Cryptographic failure while signing assembly 'c:\Microsoft Robotics Dev Studio 2008 R3\bin\LineFollowing.Y2010.M05.Proxy.dll' -- 'Error reading key file 'c:\Microsoft Robotics Dev Studio 2008 R3\bin\mrisamples.snk' -- The system cannot find the file specified. ' C:\Users\Joseph\Desktop\LineFollowing\LineFollowing\EXEC LineFollowing
Error 3 Proxy compilation failed. C:\Users\Joseph\Desktop\LineFollowing\LineFollowing\*** dssproxy LineFollowing
Error 4 The command ""C:\Users\Joseph\Microsoft Robotics Dev Studio 2008 R3\bin\dssproxy.exe" /dll:"C:\Microsoft Robotics Dev Studio 2008 R3\bin\LineFollowing.Y2010.M05.dll" /proxyprojectpath:"C:\Users\Joseph\Desktop\LineFollowing\LineFollowing\Proxy" /keyfile:"mrisamples.snk" /binpath:"." /referencepath:"C:\Users\Joseph\Microsoft Robotics Dev Studio 2008 R3\ "" exited with code 10. LineFollowing
13) went to LineFollowing.cs and changed the value of public const string Identifier = "http://schemas.tempuri.org/2010/05/linefollowing.html"; to another string, "http://robopocalypse.com/2010/05/linefollowing.html". This got rid of the warning.
14) mrisamples.snk had appeared in my Solution Explorer. Right-clicked & deleted it, and unchecked “Sign the assembly” again. Now only 1 error:
Error 1 The command ""C:\Users\Joseph\Microsoft Robotics Dev Studio 2008 R3\bin\dssproxy.exe" /dll:"C:\Microsoft Robotics Dev Studio 2008 R3\bin\LineFollowing.Y2010.M05.dll" /proxyprojectpath:"C:\Users\Joseph\Desktop\LineFollowing\LineFollowing\Proxy" /keyfile:"" /binpath:"." /referencepath:"C:\Users\Joseph\Microsoft Robotics Dev Studio 2008 R3\ "" exited with code 1.
15) Read http://msdn.microsoft.com/en-us/library/aa833213%28VS.80%29.aspx on how to specify a Post-build command line.
16) tried a few edits but don’t quite understand what the Post-build command line should be, so the build failed.
So, close but no cigar. Am done on this project for today, but later might try lifting the code into a new project that doesn’t have the build errors, else learn more about post-build macros.
Joe
Is there any way to attach files to posts? It's going to be useful to share files. Could send files via email, else if we want a central repository here, people could upload files to a file hosting site (e.g. box.net) and provide a link on these forums.
Example:
Here is a link to a folder containing a couple docs on the laser rangefinder:
http://www.box.net/shared/sfo8epyi3m






















You can find the tutorial with all the code and such in samples/Simulation Tutorials/Advanced/Multiple Simulated Sensors wherever your MRDS directory is.
Also, if you have the MRDS pdf textbook, there's a simulated magellan tutorial that does image processing (recognizing yellow cones, from what i skimmed through). It looks really good. Around page 400.