machines-in-motion / bullet_utils

Python wrapper around pybullet.
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

Hammoud/bulletwrapper_get_force() #14

Closed hammoudbilal closed 2 years ago

hammoudbilal commented 2 years ago

This pull request includes minor fixes and modifications to PinBulletWrapper here are the changes

  1. modify the demo to match updated robot_properties_solo
  2. modify PinBulletWrapper.get_force() to return the correct direction of the force, before, the order of the bodies in pyBullet.getContactPoints would choose the robot as bodyB
  3. modify PinBulletWrapper.get_force() to return the forces for all end-effectors, non-active end-effectors get zero force and zero active status.

Description

How I Tested

Do not merge before

I fulfilled the following requirements

hammoudbilal commented 2 years ago

Alright, I restored the previous get_force() method and added a new method called end_effector_forces() and fixed the remaining issues