Coder Social home page Coder Social logo

jeremylebon / actor_collisions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jiangweineu/actor_collisions

0.0 0.0 0.0 621 KB

Adding this plugin allows actor to have collision properties, enabling dynamic pedestrians or obstacles to be swept by the lidar in the Gazebo simulation scene.

C++ 14.13% HTML 6.35% CMake 14.67% C 11.96% Makefile 52.84% TypeScript 0.06%

actor_collisions's Introduction

Actor Collisions Plugin

This plugin example demonstates how to enable collisions for an animated actor and scale them.

Key points:

  • The plugin must call Link::Init on each of the actor's links so collisions are enabled on the physics engine

  • When using ODE as the physics engine, it is necessary to set <allow_auto_disable> to false on models which should collide with the actor. This does not mean that setting it to true will prevent collisions.

  • The collision names used on the SDF file take the following format:

    <node_name>_<node_name>_collision

    Where the nodes are described on the skeleton's COLLADA file.

Build plugin

From this directory

mkdir build
cd build
cmake ..
make

Run example world

An example world is provided where an actor is walking in circles and there are objects on the way for it to collide with. Run it as follows:

cd build
gazebo ../actor_collisions.world

Generate new worlds

The example world was generated from a template that randomizes various shapes parameters. You can generate new ones from this directory as follows:

erb actor_collisions.world.erb > actor_collisions.world

Reference

https://blog.csdn.net/tanjia6999/article/details/102629735#comments_13170403

actor_collisions's People

Contributors

jeremylebon avatar jiangweineu 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.