none
Simulation environment is going to be closed RRS feed

  • Question

  • Installed softwares

    a. Kinect 1.0 sdk and attached while running

    b. RDS 4.0

    after installing these softwares, i tried to build all the samples provided by them. Then after i tried to open the VSS tutorial that are provided in the samples folder and attach the exisiting manifest to those tutorials. When I press F5 to excute, Then it is attaching the simulation environment and i was succesful in loading the environment. But if I try to use a controller to move a robot, then the simulation environment is closing by itself.

    Friday, August 17, 2012 6:58 AM

Answers

  • Hmm, this is an error coming up from the XNA APIs when trying to read the keyboard.

    We haven't seen this one before.  The closest match I can find by searching seems to lead towards a bad installation of XNA or the .NET Framework.  I'd suggest uninstalling all of .NET and XNA Framework and reinstalling from scratch and trying again.

    Occasionally I'll get my development box in a really bad state like this from having installed and uninstalled a couple of releases of beta or RC runtimes.  When that happens, I generally format the hard drive and install fresh and the problem goes away.  If uninstalling and reinstalling above doesn't work, please try on either a different computer or reinstall the one you are using and see if that fixes the problem.

     - jcb

    Tuesday, August 21, 2012 5:03 PM
    Moderator

All replies

  • Hi,

    Can you confirm that you opened the Visual Studio project from the DSS command prompt (and not by dbl-clicking the project, for example).

    In any event, it looks like the sim environment has started, so its a matter of understanding what controls are causing the problem.

    Can you be more specific on what exact sample you are running, what controls you press and what errors (if any) you see? That would be helpful.

    Monday, August 20, 2012 5:34 PM
    Moderator
  • You can get a nice view of the debug logs at: http://localhost:50000/console/output

    Can you post any errors you see there to this thread?

    Monday, August 20, 2012 8:52 PM
    Moderator
  •  An invalid operation occurred when trying to query the keyboard state. The result code was 5.Namespace http://schemas.microsoft.com/robotics/2006/04/simulationengine.html 
    Category ConsoleMessage 
    Level q1:Error 
    Time 2012-08-21T13:13:04.3844437Z 
    Subject An invalid operation occurred when trying to query the keyboard state. The result code was 5. 
    Source http://127.0.0.1:50000/simulationengine 
    CodeSite Void StartRenderLoop() at Microsoft.Robotics.Simulation.Engine.SimulationEngine Void ThreadStart_Context(System.Object) at System.Threading.ThreadHelper Void Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext Void Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ExecutionContext Void ThreadStart() at System.Threading.ThreadHelper  
     

    Tuesday, August 21, 2012 1:17 PM
  • An invalid operation occurred when trying to query the keyboard state. The result code was 5.Namespace http://schemas.microsoft.com/robotics/2006/04/simulationengine.html Category ConsoleMessage Level q1:Error Time 2012-08-21T13:13:04.3844437Z Subject An invalid operation occurred when trying to query the keyboard state. The result code was 5. Source http://127.0.0.1:50000/simulationengine CodeSite Void StartRenderLoop() at Microsoft.Robotics.Simulation.Engine.SimulationEngine Void ThreadStart_Context(System.Object) at System.Threading.ThreadHelper Void Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext Void Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ExecutionContext Void ThreadStart() at System.Threading.ThreadHelper
    Tuesday, August 21, 2012 1:18 PM
  • Hmm, this is an error coming up from the XNA APIs when trying to read the keyboard.

    We haven't seen this one before.  The closest match I can find by searching seems to lead towards a bad installation of XNA or the .NET Framework.  I'd suggest uninstalling all of .NET and XNA Framework and reinstalling from scratch and trying again.

    Occasionally I'll get my development box in a really bad state like this from having installed and uninstalled a couple of releases of beta or RC runtimes.  When that happens, I generally format the hard drive and install fresh and the problem goes away.  If uninstalling and reinstalling above doesn't work, please try on either a different computer or reinstall the one you are using and see if that fixes the problem.

     - jcb

    Tuesday, August 21, 2012 5:03 PM
    Moderator