Skip to content

Commit

Permalink
Add mass, inertia and contact predicates for qrgeom (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddancha authored Jun 26, 2024
1 parent 84a9cec commit 647cdba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lisdf/parsing/qddl-builtins-v2.0.pddl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
qr::joint-conf - qr::value
qr::chain-conf - qr::value
qr::color - qr::value ; (r, g, b, a)
qr::inertia - qr::value ; (ixx, iyy, izz)

qr::pose - qr::value ; (x, y, z, roll, pitch, yaw)
qr::pose2d - qr::value ; (x, y)
Expand Down Expand Up @@ -73,6 +74,18 @@
; ?color: the color of the box, as a tuple of (r, g, b, a)
(qrgeom::box-color ?x - qr::body ?color - qr::color)

; ?x: the name of the body
; ?mass: the mass of the body (in kilograms) as a float
(qrgeom::box-mass ?x - qr::body ?mass - qr::value)

; ?x: the name of the body
; ?inertia: the diagonal inertia (ixx, iyy, izz) of the body
(qrgeom::box-inertia ?x - qr::body ?inertia - qr::inertia)

; ?x: the name of the body
; ?contact: contact model of the body, either "point" or "hydroelastic"
(qrgeom::box-contact-model ?x - qr::body ?contact_model - qr::string)

(urdf::prop ?x - qr::body ?name - qr::string ?value - qr::value)
(urdf::load-arg ?x - qr::body ?name - qr::string ?value - qr::value)

Expand Down

0 comments on commit 647cdba

Please sign in to comment.