-
Notifications
You must be signed in to change notification settings - Fork 205
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
Robot: Report mesh loading issues #744
Conversation
Signed-off-by: ahcorde <ahcorde@gmail.com>
@@ -179,6 +179,8 @@ void RobotLinkSelectionHandler::postRenderPass(uint32_t pass) | |||
} | |||
} | |||
|
|||
static std::map<const RobotLink *, std::string> errors; |
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.
I have to say that this seems like a weird way to do this. Can't we just have std::string error
as a member variable in the RobotLink
class?
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.
Signed-off-by: ahcorde <ahcorde@gmail.com>
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.
One nit inline, but I'll approve anyway.
vsnprintf(buffer, sizeof(buffer), format, args); | ||
va_end(args); | ||
|
||
std::string & err = const_cast<std::string &>(getGeometryErrors()); |
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.
Nit: Since this is all in the same class, can we just use the error
member variable instead (rather than calling a method and doing the cast)?
Signed-off-by: ahcorde <ahcorde@gmail.com>
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 to me with green CI.
This pull request has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2021-9-16/22372/1 |
Signed-off-by: ahcorde ahcorde@gmail.com
This PR is related to this PR ros-visualization/rviz#1629 in RVIZ 1.
This PR will allow to visualize the errors of an invalid URDF in the RVIZ 2 GUI.