-
Notifications
You must be signed in to change notification settings - Fork 276
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
Visualze Frustum #2707
base: gz-sim9
Are you sure you want to change the base?
Visualze Frustum #2707
Conversation
@@ -0,0 +1,440 @@ | |||
/* | |||
* Copyright (C) 2020 Open Source Robotics Foundation |
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.
* Copyright (C) 2020 Open Source Robotics Foundation | |
* Copyright (C) 2024 Open Source Robotics Foundation |
///////////////////////////////////////////////// | ||
void VisualizeFrustum::OnRefresh() | ||
{ | ||
gzmsg << "Refreshing topic list for Logical Camera Sensor messages." << std::endl; |
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.
remove or maybe debug
@@ -0,0 +1,105 @@ | |||
/* | |||
* Copyright (C) 2020 Open Source Robotics Foundation |
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.
* Copyright (C) 2020 Open Source Robotics Foundation | |
* Copyright (C) 2024 Open Source Robotics Foundation |
EntityComponentManager &_ecm) override; | ||
|
||
/// \brief Callback function to get data from the message | ||
/// \param[in]_msg FrustumSensor message |
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.
/// \param[in]_msg FrustumSensor message | |
/// \param[in] _msg FrustumSensor message |
@@ -0,0 +1,78 @@ | |||
/* | |||
* Copyright (C) 2020 Open Source Robotics Foundation |
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.
* Copyright (C) 2020 Open Source Robotics Foundation | |
* Copyright (C) 2024 Open Source Robotics Foundation |
🎉 New feature
Summary
This PR mainly adds the visualization of Frustum.
We could see it was present in gazebo classic and from gazebo garden onwards the plugin/feature is not available.
Test it
$ Build gazebo from source.
$ . install/setup.sh
$ gz sim examples/worlds/visualize_frustum.sdf
Test Ref images,
Play the simulation.
Select the topic from scroll down.
Refresh it to get the "logical_camera/frustum" topic.
Subcriibed to "logical_camera/frustum".
Final output
Checklist
codecheck
passedSupporting PRs,