bullet3 icon indicating copy to clipboard operation
bullet3 copied to clipboard

How to let BulletClient not print "argv[0]=" at initialization

Open mengyuest opened this issue 10 months ago • 1 comments

I have pybullet==3.2.5, and when I try to create a PyBullet client connection via bullet_client.BulletClient(connection_mode=p.DIRECT), at the very beginning, it will output "argv[0]=". This could be not very pleasant if I want to build many connections. A minimal example is the following:

import pybullet as p
from pybullet_utils import bullet_client as bc
for _ in range(10):
    client = bc.BulletClient(connection_mode=p.DIRECT)

This will output

argv[0]=
argv[0]=
argv[0]=
argv[0]=
argv[0]=
argv[0]=
argv[0]=
argv[0]=
argv[0]=
argv[0]=

Any idea to solve this? Thanks.

mengyuest avatar Aug 24 '23 17:08 mengyuest