Search found 3 matches

by SphericalCow
Mon Feb 01, 2021 5:16 pm
Forum: PyBullet Support and Feedback
Topic: Translate camera in debug visualizer
Replies: 1
Views: 4622

Re: Translate camera in debug visualizer

Here is the code I use for setting the visualiser camera to a given position, facing towards a given target. def set_camera(pos=torch.ones(3), target=torch.zeros(3)): disp = target - pos dist = disp.norm() yaw = np.arctan2(-disp[0],disp[1]) * 180/np.pi pitch = np.arctan2(disp[2],np.sqrt(disp[0]**2+d...
by SphericalCow
Mon Feb 01, 2021 5:11 pm
Forum: PyBullet Support and Feedback
Topic: TCP not working
Replies: 1
Views: 4203

Re: TCP not working

Not a solution but I found a workaround. You can set up a TCP client/server with: server: server_id = p.connect(p.GRAPHICS_SERVER) client: client_id = p.connect(p.GRAPHICS_SERVER_TCP) I think the only difference is that this creates a GUI on the server side. Also, note that there is an error if you ...
by SphericalCow
Sat Jan 30, 2021 4:27 pm
Forum: PyBullet Support and Feedback
Topic: TCP not working
Replies: 1
Views: 4203

TCP not working

I am trying to create a TCP client/server setup with pybullet. I have tried: server side -- physicsClientId = p.connect(p.DIRECT) # I have also tried p.SHARED_MEMORY_SERVER client side (testing on the same machine) -- physicsClientId = p.connect(p.TCP, hostName='localhost', port=6667) but I get the ...