Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow users to set the physics client correctly #6

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

logan-dunbar
Copy link

@logan-dunbar logan-dunbar commented Mar 3, 2021

Due to the importing of the module level CLIENT variable, the set_client functionality in shared_const.py does not work, meaning you are unable to set the client that the planning libraries operate on. This means you need to load the planning client first which is a pain and error prone.

I have updated all references of CLIENT to get_client() which gets the correct client from the shared_consts once set_client has been called.

Rather than passing in the physicsClientId to all the pybullet commands, it should instead use the BulletClient class which was designed specifcally for this purpose, but this would have been too drastic a change for this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant