How to read the spatial coordinates and attitude of a URDF object in real time in Pybullet

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
raynor
Posts: 4
Joined: Wed Jun 23, 2021 2:32 am

How to read the spatial coordinates and attitude of a URDF object in real time in Pybullet

Post by raynor »

The problem is as the title shows, I can't find the relevant function in the QuickStart documentation, if anyone knows the relevant example, please let me know, thank you.
Jenn77
Posts: 2
Joined: Sat Dec 11, 2021 2:11 am

Re: How to read the spatial coordinates and attitude of a URDF object in real time in Pybullet

Post by Jenn77 »

Hi, I am looking for the same function. Have you known anything about that? Thanks!
bluefish_
Posts: 8
Joined: Sun Jan 23, 2022 11:24 am

Re: How to read the spatial coordinates and attitude of a URDF object in real time in Pybullet

Post by bluefish_ »

I think getBasePositionAndOrientation() would get you the coordinates; the argument would be the id you the urdf you loaded. (the quickstart does include this i think, search for Hello PyBullet World) Did you already try this and it didn't work?
Post Reply