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

Visualizing in Rviz #54

Open
BingPeng0 opened this issue Oct 29, 2024 · 12 comments
Open

Visualizing in Rviz #54

BingPeng0 opened this issue Oct 29, 2024 · 12 comments

Comments

@BingPeng0
Copy link

Hi. I have managed to run the code and can view it by subscribing to the yolo/dbg_image. But I wanted to ask how can I visualize the 3D image in the Rviz world like what is shown in the demo.

@mgonzs13
Copy link
Owner

@BingPeng0 You can use the marker visualization to show the 3D boxes.

@BingPeng0
Copy link
Author

BingPeng0 commented Oct 30, 2024

Sorry I still dont understand as I am quite new in ROS. Do I have to make another node to run the marker visualization or there is already topic being published provided in the yolov8 launch file.

@mgonzs13
Copy link
Owner

In rviz, using the Add button and then the By topic, you should see a marker topic. Adding it will visualize the 3D boxes.

@YumTaha
Copy link

YumTaha commented Dec 3, 2024

I had similar question and I did the marker topic (there is 2, I don't know which one). This is what I see and it keeps blinking:

image

@mgonzs13
Copy link
Owner

mgonzs13 commented Dec 4, 2024

@YumTaha You can also visualize the point cloud to see where the 3D boxes are.
If the 3D boxes are blinking, it may be due to a low rate. Check the image and detections rate.

@YumTaha
Copy link

YumTaha commented Dec 4, 2024

How can I check both image and detections rate ?
also what's the difference between those 2 MarkerArray topics
Regarding visualizing the point cloud
image
Both have no topic to subscribe to

New: I believe the blinking issue is also same as the camera lag, since the boxes appears as soon as the camera image is updated, another thing I noticed is that the 3d placement don't look right,
image
as you can see the yellow and blue box are in the same surface, yet far apart in rviz

@mgonzs13
Copy link
Owner

mgonzs13 commented Dec 5, 2024

How can I check both image and detections rate ?

Use ros2 topic hz <your-topic> to check the rate.

Regarding visualizing the point cloud
Both have no topic to subscribe to

You can use the PointCloud2 to visualize the point cloud. If you are not getting topics for PointCloud2, check your realsense, there should be a param to activate the point cloud.

@YumTaha
Copy link

YumTaha commented Dec 5, 2024

Thanks, seems to work now

@BingPeng0
Copy link
Author

Screenshot from 2025-01-10 14-03-19
There is nothing appear in my Rviz

@mgonzs13
Copy link
Owner

@BingPeng0 are you using the 3D version?

@mgonzs13 mgonzs13 reopened this Jan 13, 2025
@BingPeng0
Copy link
Author

@mgonzs13
Copy link
Owner

@BingPeng0 check the dbg_bb_markers messages and QoS. What is the world frame, does it exist in your tfs? You can also pull the new changes from this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants