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 double initialization problem in Python api #56

Merged

Conversation

lklimkiewicz7
Copy link

One (like me) may want to control multiple interbotix arms from single process using python API. Currently it throws exception due to calling rclpy.init() twice. These simple changes seem to fix this issue.

@patilunmesh
Copy link

The addition of rclpy.ok to prevent multiple calls to init is a good workaround however, there is an issue of calls to other rclpy states such as shutdown. I will be opening another pull request to introduce node ownership parameter to make sure all node state managing functions are accessible to only one robot.

@lukeschmitt-tr lukeschmitt-tr merged commit 8a9d436 into Interbotix:humble Feb 21, 2024
1 check passed
@lukeschmitt-tr
Copy link
Member

@lklimkiewicz7 Thanks for your valuable contribution!

lukeschmitt-tr added a commit that referenced this pull request Feb 21, 2024
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.

3 participants