locked
Knowing robot's position RRS feed

  • Question

  • Hello,

    How can i know the current position (X and Z parameters)of the robot in sim environment?

    Would appreciate any help for this topic,

    Simon

    Monday, May 20, 2013 2:49 PM

Answers

  • Hello, 

    if you have defined the entities in the .cs, in the code, with SingleShapeEntity a = new SingleShapeEntity(...); You can get his position with: "a.State.Pose.Position" .

    if you have created it with a xml i don't know.


    • Marked as answer by SimonMay4 Saturday, June 8, 2013 2:48 PM
    Wednesday, May 29, 2013 6:51 AM

All replies

  • Please search for answers before posting questions.

    The following forum question answers it.

    http://social.msdn.microsoft.com/forums/en-US/roboticssimulation/thread/177a4582-e424-4eb4-aa5b-8ed0c10467a0/

    Friday, May 24, 2013 6:17 AM
    Moderator
  • Hello, 

    if you have defined the entities in the .cs, in the code, with SingleShapeEntity a = new SingleShapeEntity(...); You can get his position with: "a.State.Pose.Position" .

    if you have created it with a xml i don't know.


    • Marked as answer by SimonMay4 Saturday, June 8, 2013 2:48 PM
    Wednesday, May 29, 2013 6:51 AM
  • Tnx a lot,

    It did help me, working great. Now I'm trying to reach same State.Pose.Position  of the robot Pioneer 3dx which comes with Robotics tutorial 3. That robot i haven't added through .cs code but instead he is included in the tutorial mentioned above.

    If you know a way to reach to his Position that would be greatly appreciated,

    Simon

    Saturday, June 8, 2013 2:53 PM