-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Chisel to the perception module #281
base: master
Are you sure you want to change the base?
Conversation
…o perception/chisel
…ains helper function for performing transformations on detected objects.
…cs/prpy into perception/chisel
… to tf for offscreen render to use
import rospy | ||
|
||
try: | ||
rospy.init_node('chisel_detector',anonymous=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't call init_node
here because it may only be called once per process. I prefer calling init_node
only once, in the top-level script, to prevent this from happening twice.
# Remove any previous bodies in the camera | ||
for b in self.camera_bodies: | ||
self.camera.remove_body(b) | ||
self.camera_bodies = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these on self
? It seems like a local variable would suffice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camera_bodies
? It is the list of bodies that the camera has added since being started, and needs to have state between calls to DetectObject
I've been starting to do this for our retimers/smoothers. See: |
…cs/prpy into perception/chisel
Conflicts: src/prpy/perception/chisel.py src/prpy/perception/kinbody_helper.py
…r to account for detection noise during masking
I think we are ready to merge this. @Shushman and I checked that chisel is working. And I have verified simtrack also works with these changes. We should test vncc one more time to ensure I didn't introduce any bugs with by switching to use the
kinbody_helper
functions. But in the meantime, lets start gathering comments on this PR and working it through.