Giter Site home page Giter Site logo

pybulletcarrobot's Introduction

README

This is a repo to store related material of this issue

pip install pybullet

Model:

  1. Pybullet_racecar
  2. simple_cuboid
  3. Mecanum_simple

Hello_example

cd Pybullet_racecar
python hello_racecar.py

Complex_custmoize

cd src
python run.py

About info_dict

For every robot folder, it has it's own info_dict

2020/7/11

Update based on

disable all the motor constraints of the Roller by this p.setJointMotorControl2(objUid, linkIndex, p.VELOCITY_CONTROL, force=0) which is a tedious work, so i just change the maxMotorImpulse to 0 when create the default motor constraint in the function PhysicsServerCommandProcessor::createJointMotors() and then rebuilt the engine. disable the cone frition by this p.setPhysicsEngineParameter(enableConeFriction=0).

2020/6/26

  1. Create a new conda environment
conda crate -n bulletTest python=3
conda activate bulletTest
  1. Build from source and test (Modify paths accordingly!!!)
git clone https://github.com/bulletphysics/bullet3.git
cd bullet3
rm CMakeCache.txt
mkdir build_cmake
cd build_cmake
cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=OFF -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release -DPYTHON_SITE_PACKAGES=/home/yanshimsi/miniconda3/envs/bulletTest/lib/python3.8/site-packages -DPYTHON_EXECUTABLE:FILEPATH=/home/yanshimsi/miniconda3/envs/bulletTest/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/home/yanshimsi/miniconda3/envs/bulletTest/include/python3.8 -DPYTHON_LIBRARY:FILEPATH=/home/yanshimsi/miniconda3/envs/bulletTest/lib/libpython3.8.so ..
make -j 4
cd examples
cd pybullet
export PYTHONPATH=$PYTHONPATH:"$(pwd)"
#ln -s pybullet.dylib pybullet.so
#python -c "import pybullet"

cd /mnt/d/GitHub/PybulletCarRobot/bullet3/examples/pybullet/gym/
export PYTHONPATH=$PYTHONPATH:"$(pwd)"
  • Test before applying fix
cd /mnt/d/GitHub/PybulletCarRobot/mecanum_simple
python hello_mecanum.py

pip install scipy matplotlib
cd /mnt/d/GitHub/PybulletCarRobot/src
python run.py
## Will generate a video
  1. Apply fix and test
cd /mnt/d/GitHub/PybulletCarRobot/bullet3
git apply ../patch.diff
### error: corrupt patch at line 101

pybulletcarrobot's People

Contributors

yanshil avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

pybulletcarrobot's Issues

About omin-wheels

Hello, can the omnidirectional robot in your example work normally in Pybullet? Because I read the issue you mentioned here 2851 in Pybullet, I wonder if your script mecanum_simple/hello_mecanum.py has solved the control problem perfectly?

Thanks!

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.