-
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
Edit material ambient/specular/diffuse/emissive in component inspector #1123
Conversation
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo4 #1123 +/- ##
===============================================
- Coverage 67.00% 66.32% -0.69%
===============================================
Files 244 245 +1
Lines 18263 18468 +205
===============================================
+ Hits 12237 12248 +11
- Misses 6026 6220 +194
Continue to review full report at Codecov.
|
Need to address saving. |
// Visual service | ||
std::string visualService | ||
{"/world/" + worldName + "/visual_config"}; | ||
this->dataPtr->node.Advertise(visualService, |
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.
check service name ?
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.
The other services in UserCommands::Configure
do not check, should this one differ?
I've update the Figma design to include color selection. Can you update this to match? Here is a screenshot of the relevant portion: Clicking on the color swatch opens the color picker. |
Regarding the updated design, one thing to consider is that the GUI would be accepting hex as input, while the SDF spec accepts decimals. I don't think that's a huge deal, but it can become cumbersome for users going back-and-forth between the 2. It also becomes tricky to verify that your SDF was properly loaded. |
I took the hex approach in the GUI because it's more compact than listing RGBA, users are probably equally familiar with the hex approach, and I'd like to update the color picker modal to have a color wheel + RGBA + hex all on one panel like in gimp. Ultimately, I'm trying to get the GUI to be more intuitive and user friendly instead of designing the GUI to the fit the needs of underlying libraries like SDF. |
I ticketed this a while back: gazebosim/sdformat#195 Now that pose accepts degrees and quaternions, I think there's a precedent to adding flexibility to other tags too.
Agree. I think that the native color dialog on the latest Ubuntu is very limited compared to what it used to be. On Focal, even for Gazebo classic, I see something close to this: While in the past it used to be like this: I haven't dug to see at which point that changed, and whether we can force Qt to use the old one. Ideally, we wouldn't need to reinvent a color picker ourselves. |
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
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.
Functionality and design looks good.
🎉 New feature
Summary
Ability to edit a model's visual ambient, specular, diffuse, and emissive material colors through the component inspector using sliders or a color dialog.
Test it
ign gazebo shapes.sdf
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge