Skip to content
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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

Achuthankrishna
Copy link
Contributor

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.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 10, 2024
Copy link
Contributor

@joannetruong joannetruong left a 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.

Copy link
Contributor

@joannetruong joannetruong left a 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
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants