mitchellspryn / UrdfSim

Other
104 stars 25 forks source link

request for example of ~/Documents/AirSim .json file #18

Closed huckl3b3rry87 closed 4 years ago

huckl3b3rry87 commented 4 years ago

I trying to follow the instructions hereto setup the AirSim settings for URDFSim and I am looking at the example file, which is specific to AirSim, but I am having some trouble. For instance, the first bullet point says

The pawn type needs to be set to "urdfbot"

but I do not see an entry "pawn type" in the .json file.

I think it might be easier if you provided an example of this json file for URDFsim, do you mind doing that for the gripper arm?

currently I have something like this

{

  "SettingsVersion": 1.0,

  "SimMode": "UrdfBot",

  "PawnPaths": {

    "UrdfBot": {

      "UrdfFile": "C:/Users/admin/Documents/workspace/UrdfSim/Examples/UrdfBot/RobotArm.xml",

    }

  },

  "Vehicles": {

    "UrdfBot": {

      "VehicleType": "UrdfBot",

      "DebugSymbolScale": 5,

      "CollisionBlacklist": [

        {

          "BotMesh": "base",

          "ExternalActorRegex": "Ground"

        }

      ],

      "Cameras": {

        "Follow": {

          "X": 200,

          "Y": 0,

          "Z": 50,

          "Pitch": -10,

          "Roll": 0,

          "Yaw": 180,

          "AttachLink": "base"

        },

        "Arm": {

          "X": -8,

          "Y": 0,

          "Z": -5,

          "Pitch": 90,

          "Roll": 0,

          "Yaw": 0,

          "AttachLink": "manipulator_base"

        }

      },

      "Sensors": {

        "FirstArmLinkImu": {

          "SensorType": 2,

          "AttachLink": "first_arm_link",

          "Enabled": true

        },

        "SecondArmLinkImu": {

          "SensorType": 2,

          "AttachLink": "second_arm_link",

          "Enabled": true

        },

        "ThirdArmLinkImu": {

          "SensorType": 2,

          "AttachLink": "final_arm_link",

          "Enabled": true

        },

        "ArmDistanceSensor": {

          "SensorType": 5,

          "AttachLink": "manipulator_base",

          "Enabled": true,

          "DrawDebugPoints": true,

          "MaxDistance": 1000,

          "X": 25,

          "Y": 20,

          "Z": 0,

          "Pitch": -90,

          "Roll": 0,

          "Yaw": 0

        }

      }

    }

  }

}

Thank you!

huckl3b3rry87 commented 4 years ago

maybe we can just provide a link to this example in the docs https://github.com/mitchellspryn/UrdfSim/blob/master/Examples/UrdfBot/settings-arm.json