Skip to content

Commit 1f3c075

Browse files
committed
Changed log to warn level and added explanation.
Addresses suggestions in #140 (comment)
1 parent 22ecace commit 1f3c075

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/prpy/planning/base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,18 @@ def __call__(self, instance, robot, *args, **kw_args):
7979
joint_values[1] = cloned_robot.GetActiveDOFValues()
8080

8181
# Check for mismatches in the cloning and hackily reset them.
82+
# (This is due to a possible bug in OpenRAVE environment cloning where in
83+
# certain situations, the Active DOF ordering and values do not match the
84+
# parent environment. It seems to be exacerbated by multirotation joints,
85+
# but the exact cause and repeatability is unclear at this point.)
8286
if not numpy.array_equal(joint_indices[0], joint_indices[1]):
83-
logger.info("Cloned Active DOF index mismatch: %s != %s",
87+
logger.warn("Cloned Active DOF index mismatch: %s != %s",
8488
str(joint_indices[0]),
8589
str(joint_indices[1]))
8690
cloned_robot.SetActiveDOFs(joint_indices[0])
8791

8892
if not numpy.allclose(joint_values[0], joint_values[1]):
89-
logger.info("Cloned Active DOF value mismatch: %s != %s",
93+
logger.warn("Cloned Active DOF value mismatch: %s != %s",
9094
str(joint_values[0]),
9195
str(joint_values[1]))
9296
cloned_robot.SetActiveDOFValues(joint_values[0])

0 commit comments

Comments
 (0)