Code Monkey home page Code Monkey logo

simple_sim_ros's Introduction

simple_sim_ros

Minimally featured but fast ROS physics simulation wrapping bullet

roslaunch bullet_server bullet_server.launch
roslaunch bullet_server stewart_platform.launch

The ros pid package is required, for example sudo apt-get install ros-kinetic-pid on kinetic systems.

Then extend on 'actuator':

Command a position to an actuator (prismatic_0 through prismatic_6), this will cause actuator 3 to retract:

rostopic pub /prismatic_3/setpoint std_msgs/Float64 "data: 0.1"  -1

Give periodic impulses to an actuator (rough motion):

rostopic pub /add_impulse bullet_server/Impulse "{body: 'top_cylinder_0', impulse:{x: -0.1}}" -r 4

Demonstration video:

https://www.youtube.com/watch?v=URoyLptHvCU

old instructions (now out of date)

roslaunch bullet_server bullet_server.launch
rosrun bullet_server random_body.py
rosrun bullet_server test.py  # drop a small 'car'

Ubuntu 16.04 + Kinetic

rosrun bullet_server mesh.py _file_name:=`rospack find bullet_server`/data/dodecasphere.stl
Traceback (most recent call last):
  File "/home/lucasw/catkin_ws/src/simple_sim_ros/bullet_server/scripts/mesh.py", line 18, in <module>
    from pyassimp import pyassimp
  File "/usr/lib/python2.7/dist-packages/pyassimp/__init__.py", line 1, in <module>
    from .core import *
  File "/usr/lib/python2.7/dist-packages/pyassimp/core.py", line 29, in <module>
    class AssimpLib(object):
  File "/usr/lib/python2.7/dist-packages/pyassimp/core.py", line 33, in AssimpLib
    load, load_mem, release, dll = helper.searc

pyassimp api differences from 14.04?

Dependencies

sudo apt-get install python-pyassimp

misc

Generic mesh loader for python?

assimp

vtk stl reader? No don't like it.

SoftBody

MeshPy for generating triangle and tetras?

Debug

rviz: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/include/OgreAxisAlignedBox.h:252: void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.

simple_sim_ros's People

Contributors

lucasw avatar

Watchers

James Cloos 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.