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

Merge: 8 -> main #2199

Merged
merged 57 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
b3731d6
Remove forward-ported restriction on model loading (#2104)
mjcarroll Aug 31, 2023
52167a6
Add automatic moment of inertia calculation for meshes (#2061)
jasmeet0915 Aug 31, 2023
ecc91e8
Remove GZ_PHYSICS_ENGINE_INSTALL_DIR deprecation warnings (#2106)
caguero Aug 31, 2023
7179716
fix broken link to API (#2108)
mabelzhang Sep 1, 2023
2dbcc6c
Remove GZ_PHYSICS_ENGINE_INSTALL_DIR deprecation warnings (#2106)
caguero Aug 31, 2023
58a0c0b
Fix typos. (#2114)
caguero Sep 1, 2023
5ebf860
Fix default topic name of JointStatePublisher (#2115)
Bi0T1N Sep 5, 2023
b938768
Add link to existing issue (#2116)
Bi0T1N Sep 5, 2023
5bb1b1c
Fix thrust cmd topic in underwater tutorial (#2120)
iche033 Sep 6, 2023
b433259
Removed warning in sensors_demos.sdf (#2122)
ahcorde Sep 7, 2023
491fa23
Fixed invalid service names (#2121)
ahcorde Sep 7, 2023
9055d88
fix move to model (#2126)
iche033 Sep 7, 2023
353ad20
Update README.md (#2124)
ahcorde Sep 7, 2023
923ccee
update link in particles tutorial (#2127)
iche033 Sep 8, 2023
d41e94c
Update triggered_publisher.md (#2130)
ahcorde Sep 8, 2023
f44677a
Remove sdformat diff drive warning (#2129)
ahcorde Sep 8, 2023
0baa39f
Fixes the link for the Hardware Acceleration Tutorial
Voldivh Sep 8, 2023
235efd3
Merge pull request #2133 from gazebosim/voldivh/fix_hw_accel_link
Voldivh Sep 8, 2023
183c04f
Use default physics engine in example worlds (#2134)
iche033 Sep 8, 2023
5fbfcf7
Update underwater_vehicles.md (#2128)
ahcorde Sep 8, 2023
967f4f1
Fix duplicate entries in joint position controller GUI plugin (#2101)
iche033 Sep 11, 2023
07129c6
Modifies the definition of hydrodynamics plugin
Voldivh Sep 12, 2023
4135cd1
Removed python trace (#2123)
ahcorde Sep 12, 2023
02c0a56
Corrects the output from the command
Voldivh Sep 12, 2023
f9f9897
Merge pull request #2137 from gazebosim/voldivh/lrauv_control_demo_pl…
Voldivh Sep 12, 2023
3e6be99
Load transform control and select entities plugins in thermal camera …
iche033 Sep 12, 2023
9d79b62
Update video recorder tutorial screenshot (#2135)
iche033 Sep 12, 2023
e9fa7d4
Merge pull request #2138 from gazebosim/voldivh/model_command_output_…
Voldivh Sep 12, 2023
d052491
Fix multi_lrauv_race example (#2111)
caguero Sep 13, 2023
0bd0b66
Add note about Featherstone (#2143)
mjcarroll Sep 13, 2023
5577b19
Fix CMake warning in example (#2145)
azeey Sep 13, 2023
2388193
Improve joint controller world visualization (#2144)
ahcorde Sep 14, 2023
839282a
Update logging tutorial (#2148)
iche033 Sep 14, 2023
2bef470
Update Reset simulation tutorial (#2147)
iche033 Sep 14, 2023
294fddc
Fix broken / update ign links in tutorials (Harmonic) (#2107)
mabelzhang Sep 14, 2023
c8d16bf
Update triggered publisher tutorial (#2150)
iche033 Sep 15, 2023
b504e5c
Fix light_control example and update tutorial (#2149)
iche033 Sep 15, 2023
bb6753a
Fix reset button in examples (#2151)
azeey Sep 15, 2023
509d01a
Fix another deadlock in sensors system (#2141)
iche033 Sep 20, 2023
4d4b680
Added tutorial for Automatic Inertia Calculator (#2119)
jasmeet0915 Sep 20, 2023
f55212e
Fix example output in python tutorial (#2157)
azeey Sep 20, 2023
3eb2c7c
Fix SDFormat xml output of sdf_exporter (#2156)
azeey Sep 20, 2023
f5087df
Merge gz-sim7 into gz-sim8
azeey Sep 20, 2023
e007fa2
Backport reset button fix (#2159)
iche033 Sep 20, 2023
e603694
Merge pull request #2158 from azeey/7_to_8
azeey Sep 21, 2023
5dbbd1b
Fix image sizes in apply_force_torque tutorial (#2169)
azeey Sep 26, 2023
35c068e
Prepare for 7.6.0 Release (#2173)
azeey Sep 27, 2023
7c06978
Merge from gz-sim7
iche033 Sep 27, 2023
409d8c5
fix INTEGRATION_save_world's SdfGeneratorFixture.ModelWithNestedInclu…
iche033 Sep 27, 2023
4c62304
Merge pull request #2175 from gazebosim/merge_7_8_20230927
iche033 Sep 27, 2023
2e58d61
TouchPlugin: Reset the plugin with the initial values (#2132)
ahcorde Sep 27, 2023
5ef84a9
Update Mesh Inertia Calculator to incorporate mesh scale in the calcu…
jasmeet0915 Sep 27, 2023
c5cd260
Server: explicitly skip auto-inertial calculation (#2166)
scpeters Sep 28, 2023
727eb3c
Update changelog and prepare for pre2 release (#2178)
azeey Sep 29, 2023
18aa48f
Prepare for 8.0.0 Release (#2181)
azeey Sep 29, 2023
78c27d9
Remove direct dependency on libdart in CI (#2187)
azeey Oct 2, 2023
8c2fb9b
Support specifying the name of light associated with lens flares (#2172)
iche033 Oct 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix light_control example and update tutorial (#2149)
Signed-off-by: Ian Chen <ichen@openrobotics.org>
  • Loading branch information
iche033 authored Sep 15, 2023
commit b504e5c1837a10f800d3434b1883966ab2da0a7b
2 changes: 2 additions & 0 deletions examples/standalone/light_control/light_control.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ void createLight()

entityFactoryRequest.mutable_light()->set_name("point");
entityFactoryRequest.mutable_light()->set_range(4);
entityFactoryRequest.mutable_light()->set_intensity(1);
entityFactoryRequest.mutable_light()->set_attenuation_linear(0.5);
entityFactoryRequest.mutable_light()->set_attenuation_constant(0.2);
entityFactoryRequest.mutable_light()->set_attenuation_quadratic(0.01);
Expand Down Expand Up @@ -149,6 +150,7 @@ int main(int argc, char **argv)
//! [modify light]
lightRequest.set_name("point");
lightRequest.set_range(4);
lightRequest.set_intensity(1);
lightRequest.set_attenuation_linear(0.5);
lightRequest.set_attenuation_constant(0.2);
lightRequest.set_attenuation_quadratic(0.01);
Expand Down
9 changes: 6 additions & 3 deletions tutorials/light_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ This service will allow to modify lights in the scene.

To modify lights inside the scene we need to use the service `/world/<world name>/light_config` and
fill the message [`gz::msgs::Light`](https://gazebosim.org/api/msgs/9/classgz_1_1msgs_1_1Light.html).
In particular this example modifies the point light that we introduced with the function `createLight()`.

This tutorial describes the code in the `examples/standalone/light_control` example.

First we create a point light with the function `createLight()`:

\snippet examples/standalone/light_control/light_control.cc create light

**NOTE:**: You can check the [entity creation](entity_creation.html) tutorial to learn how to include models and lights in the scene.

As you can see in the snippet we modify the specular and diffuse colors of the light in the scene.
As you can see in the snippet below, we then modify the specular and diffuse colors of the point light in the scene.

\snippet examples/standalone/light_control/light_control.cc modify light

In this case we are creating random numbers to fill the diffuse and specular.
The `r`, `g`, `b` components of the light diffuse and specular colors are randomly generated and constantly changing:

\snippet examples/standalone/light_control/light_control.cc random numbers

Expand Down