Skip to content

Debugging self-collision? #223

Discussion options

You must be logged in to vote

In case others find this useful, this is what I came up with -- I realized by setting state.robot_spheres.requires_grad = True the CC kernel will fill out rollout.robot_self_collision_constraint._sparse_sphere_idx, which I can then use to see which sphere have collision. Here's the full script I'm using:

import time

import torch
from yaml.parser import ParserError
from yaml.scanner import ScannerError

from curobo.geom.sdf.utils import create_collision_checker
from curobo.geom.sdf.world import WorldCollisionConfig, CollisionCheckerType

# CuRobo
from curobo.rollout.arm_base import ArmBase, ArmBaseConfig
from curobo.types.base import TensorDeviceType
from curobo.types.robot import RobotCo…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@peter-mitrano-bg
Comment options

@balakumar-s
Comment options

@peter-mitrano-bg
Comment options

@peter-mitrano-bg
Comment options

Answer selected by balakumar-s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants