Giter Site home page Giter Site logo

usmpl's Introduction

USMPL

Runtime ROS animatable SMPL body model for Unreal Engine

Requirements

Setup

Follow these steps to use USMPL plugin in your unreal project

  1. Get ROSIntegration plugin: USMPL is depends on ROSIntegration for ROS support. Clone the ROSIntegration repository and put it in %ProjectDirectory%\Plugins directory. If the Pluigns directory doesn't exist, create it.

  2. Get Julia and CSMPL and build CSMPL shared library: Clone the SMPL.jl repository and switch to branch CSMPL. Julia and CSMPL are not required to be present in the Unreal project directory. These can be anywhere.

git clone -b CSMPL https://github.com/nitin-ppnp/SMPL.jl.git

Follow the instructions to build CSMPL as a shared library. The instructions are available at https://github.com/nitin-ppnp/SMPL.jl/tree/CSMPL. This will generate smplbuild directory with multiple dll files in it.

  1. Get USMPL plugin: Clone the USMPL plugin in %ProjectDirectory%\Plugins directory.
git clone https://github.com/nitin-ppnp/USMPL.git
  1. Set SMPL related environment variables: Set the following 3 environment variables permanently (not just in a shell) to your system. The values which needs to be set are explained in the CSMPL repository instructions.

    • SMPLPATH (path to the SMPL .npz file)
    • JULIA_DIR (julia directory path)
    • CSMPL_LIB_PATH (path to the built csmpl.dll file)
  2. Make the header file available in the VS project: Open the visual studio project and add these to your project vc++ include directories.

    • $(JULIA_DIR)\include\julia
    • $(JULIA_DIR)\include\julia\uv
  3. Make the DLLs available at runtime: One way to make this happen is to add the smplbuild in the windows PATH. A preferred way would be to copy the contents of smplbuild to the unreal project build directory. Its path looks like this %ProjectDirectory%\Binaries\Win64. If this directory doesn't exist, build your project. It won't compile but create this directory.

  4. Build the unreal project: The project along with the plugins should build fine at this point. If it fails, check all the above steps. If ROSIntegration fail to build, check its page for issues. It might happen for UE 4.24. Check this issue for solution code-iai/ROSIntegration#114

Usage

  1. Configure game for ROS: Follow the "Setting up the plugin" instructions of ROSIntegration plugin. Basically, the GameInstance should be changed to ROSIntegrationGameInstance.
  2. Spawn the SMPL: Drag the SMPLActor class in the viewport to create a SMPL Instance.

  1. Set topic name: Set the ROS topic name which would cotain the pose message. If you select the SMPLActor instance in the viewport, the PoseTopicName field would appear on the right side (marked in red).

usmpl's People

Contributors

nitin-ppnp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.