mitchellspryn / UrdfSim

Other
102 stars 25 forks source link

Can I compile custom environment using URDFSIm? #38

Closed ghost closed 3 years ago

ghost commented 3 years ago

I succeded in rendering my own URDFbot, However, I am having struggle in compiling my own enviornment to run my URDFBot

If I want to compile my own environment for URDFSIm, Can I just follow

https://microsoft.github.io/AirSim/unreal_custenv/

This procedure, with only minor modification with copying Unreal/Airsim folder from URDFSim folder, not AirsimFolder? Does this minor modification works?

mitchellspryn commented 3 years ago

Yup, that's how I generated the AnnotatedUnrealMap. I copied the folder into the Plugins directory, and made my uproject file look like this:

{
    "FileVersion": 3,
    "EngineAssociation": "4.24",
    "Category": "",
    "Description": "",
    "Modules": [
        {
            "Name": "RMSpringLandscape",
            "Type": "Runtime",
            "LoadingPhase": "Default",
            "AdditionalDependencies": [
                "AirSim"
            ]
        }
    ],
    "Plugins": [
        {
            "Name": "AirSim",
            "Enabled": true
        },
        {
            "Name": "PythonScriptPlugin",
            "Enabled": true
        },
        {
            "Name": "EditorScriptingUtilities",
            "Enabled": true
        },
        {
            "Name": "SequencerScripting",
            "Enabled": true
        }
    ]
}

You might not need the last three plugins, I did some python scripting to automate building some of the environment.

ghost commented 3 years ago

Could you try if you are able to compile LandscapeMountains using URDFSim? I keep coming acrossing lots of errors in trying them.

mitchellspryn commented 3 years ago

I could, but that's probably not the best way to handle this issue, as dropping random binaries in github releases doesn't scale well. Better if we can fix the compile errors. What sorts of errors are you seeing? Are you building with VS 2017 on UE 4.24?

ghost commented 3 years ago

Those are some of errors I got when I try compile City Park Environment https://www.unrealengine.com/marketplace/en-US/product/city-park-environment-collection?sessionInvalidated=true

image

which shows no problem when I try compile them using airsim. Could you try a look?

mitchellspryn commented 3 years ago

Can you post the full build output? Screenshots don't show the full error message.

mitchellspryn commented 3 years ago

It looks like you've opened a duplicate issue here, so closing this one.