-
Notifications
You must be signed in to change notification settings - Fork 7
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 Visualization Lables and static publishers for images #211
base: main
Are you sure you want to change the base?
Conversation
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.
let's clean this up a bit and also finalize the behavior we want when the RS gets disconnected.
intel_realsense_payload_for_spotsim2real/IntelRealSenseCameraInterface.py
Show resolved
Hide resolved
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.
looks good, but there are a couple places we can clean up. let's get this PR merged in soon!
|
||
head_depth = np.hstack([imgs[Cam.FRONTRIGHT_DEPTH], imgs[Cam.FRONTLEFT_DEPTH]]) | ||
# Try to get hand image responses , if obtained then we add it to image responses list. From there, | ||
# we ger hand depth and hand rgb. Taking head rgb and depth out of this block, so that the head images run |
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.
typo: get
while not all([self.msgs[s] is not None for s in subscriptions]): | ||
if rospy.get_time() - start_time > timeout: | ||
rospy.logwarn(f"[{self.node_name}]: Timeout waiting for image topics.") | ||
break |
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.
if we cannot get the images, do we want to continue running the code? Or we want to skill the program and let users know?
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.
This function gets timeout, tells the user that there's a timeout and continues execution for the topics that are publishing. It just replaces the old method , by giving a log of timeout for a topic.
Changed visualization UI , which now displays Gripper Image, Depth, Intel Realsense RGB and Realsense depth constantly , which can help to debug issues in cameras. Added labels to visualizer to display which image corresponds to which topic for better user understanding.