Skip to content

Commit 940bce8

Browse files
authored
ign -> gz CLI Migration : gz-sim (gazebosim#1533)
Signed-off-by: methylDragon <[email protected]>
1 parent 136c840 commit 940bce8

File tree

136 files changed

+382
-372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+382
-372
lines changed

.github/ci/after_make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ make install
88
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
99

1010
# For ign-tools
11-
export GZ_CONFIG_PATH=/usr/local/share/ignition
11+
export GZ_CONFIG_PATH=/usr/local/share/gz
1212

1313
# For rendering / window tests
1414
Xvfb :1 -screen 0 1280x1024x24 &

Changelog.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@
357357
1. Sensor systems work if loaded after sensors
358358
* [Pull request #1104](https://github.com/gazebosim/gz-sim/pull/1104)
359359

360-
1. Support printing sensors using `ign model`
360+
1. Support printing sensors using `gz model`
361361
* [Pull request #1157](https://github.com/gazebosim/gz-sim/pull/1157)
362362

363363
1. Set camera clipping plane distances from the GUI
@@ -956,7 +956,7 @@
956956
1. 3 to 4
957957
* [Pull request #933](https://github.com/gazebosim/gz-sim/pull/933)
958958

959-
1. Model info CLI `ign model`
959+
1. Model info CLI `gz model`
960960
* [Pull request #893](https://github.com/gazebosim/gz-sim/pull/893)
961961

962962
1. Support Bullet on Edifice
@@ -1729,7 +1729,7 @@
17291729
1. Fix to handle multiple logical cameras.
17301730
* [Pull Request 539](https://github.com/gazebosim/gz-sim/pull/539)
17311731

1732-
1. Improve ign tool support on macOS.
1732+
1. Improve gz tool support on macOS.
17331733
* [Pull Request 477](https://github.com/gazebosim/gz-sim/pull/477)
17341734

17351735
1. Add support for topic statistics on breadcrumb deployments.
@@ -2064,7 +2064,7 @@
20642064
1. Hello world plugin added
20652065
* [Pull request #699](https://github.com/gazebosim/gz-sim/pull/699)
20662066

2067-
1. Model info CLI `ign model`
2067+
1. Model info CLI `gz model`
20682068
* [Pull request #893](https://github.com/gazebosim/gz-sim/pull/893)
20692069

20702070
1. Don't create components for entities that don't exist
@@ -2166,7 +2166,7 @@
21662166
1. Added screenshot to toolbar
21672167
* [Pull request #588](https://github.com/gazebosim/gz-sim/pull/588)
21682168

2169-
1. Improve ign tool support on macOS
2169+
1. Improve gz tool support on macOS
21702170
* [Pull request #477](https://github.com/gazebosim/gz-sim/pull/477)
21712171

21722172
1. change nullptr to a int ptr for qt 5.15.2 bug
@@ -2444,7 +2444,7 @@
24442444
* [Pull Request 351](https://github.com/gazebosim/gz-sim/pull/351)
24452445
* [Pull Request 362](https://github.com/gazebosim/gz-sim/pull/362)
24462446

2447-
1. Tests & Warnings: Qt 5.14, breadcrumbs, Gui, ign_TEST
2447+
1. Tests & Warnings: Qt 5.14, breadcrumbs, Gui, gz_TEST
24482448
* [Pull Request 327](https://github.com/gazebosim/gz-sim/pull/327)
24492449

24502450
1. Added support for specifying topics to record.
@@ -2585,7 +2585,7 @@
25852585
1. Enhanced log playback performance.
25862586
* [Pull Request 351](https://github.com/gazebosim/gz-sim/pull/351)
25872587

2588-
1. Tests & Warnings: Qt 5.14, breadcrumbs, Gui, ign_TEST
2588+
1. Tests & Warnings: Qt 5.14, breadcrumbs, Gui, gz_TEST
25892589
* [Pull Request 327](https://github.com/gazebosim/gz-sim/pull/327)
25902590

25912591
1. Added support for specifying topics to record.

Migration.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ release will remove the deprecated code.
3131
* `IGN_GAZEBO_PLUGIN_INSTALL_DIR`
3232
* `IGN_GAZEBO_GUI_PLUGIN_INSTALL_DIR`
3333
* `IGN_GAZEBO_WORLD_INSTALL_DIR`
34+
* The `gazebo` command line verb is deprecated.
35+
Use `sim` instead (e.g. `ign gazebo` -> `gz sim`).
3436

3537
## Gazebo Sim 6.1 to 6.2
3638

@@ -190,7 +192,7 @@ in SDF by setting the `<visual><material><double_sided>` SDF element.
190192
file can now be loaded without a flag.
191193

192194
* The `ign-gazebo` command line tool is deprecated. The new tool is
193-
`ign gazebo`, which has all the same options, except for
195+
`gz sim`, which has all the same options, except for
194196
`--distributed` and `--file`/`-f`, which have been removed.
195197

196198
* The `entity_name` field in the messages published by the imu system is
@@ -211,5 +213,5 @@ added an SDF message to the start of log files.
211213
* The ignition-gazebo1-gui library has been changed to a `gui` component of
212214
ignition-gazebo. To use the gui component downstream, update the find package
213215
call in cmake to request for the component, e.g.
214-
`ign_find_package(ignition-gazebo1 REQUIRED COMPONENTS gui)`, and link to the
216+
`gz_find_package(ignition-gazebo1 REQUIRED COMPONENTS gui)`, and link to the
215217
`libignition-gazebo1::gui` target instead of `libignition-gazebo1-gui`

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ See the [installation tutorial](https://gazebosim.org/api/gazebo/6.1/install.htm
8585
Gazebo Sim can be run from the command line, once [installed](#install), using:
8686

8787
```
88-
ign gazebo
88+
gz sim
8989
```
9090

9191
For help, and command line options use:
9292

9393
```
94-
ign gazebo -h
94+
gz sim -h
9595
```
9696

9797
## Known issue of command line tools
@@ -103,7 +103,7 @@ A workaround for a single package is to define the environment variable
103103
`GZ_CONFIG_PATH` to point to the location of the Gazebo library installation,
104104
where the YAML file for the package is found, such as
105105
```
106-
export GZ_CONFIG_PATH=/usr/local/share/ignition
106+
export GZ_CONFIG_PATH=/usr/local/share/gz
107107
```
108108

109109
However, that environment variable only takes a single path, which means if the
@@ -114,9 +114,9 @@ line is using symbolic links to each library's YAML file.
114114
```
115115
mkdir ~/.gz/tools/configs -p
116116
cd ~/.gz/tools/configs/
117-
ln -s /usr/local/share/ignition/fuel8.yaml .
118-
ln -s /usr/local/share/ignition/transport12.yaml .
119-
ln -s /usr/local/share/ignition/transportlog12.yaml .
117+
ln -s /usr/local/share/gz/fuel8.yaml .
118+
ln -s /usr/local/share/gz/transport12.yaml .
119+
ln -s /usr/local/share/gz/transportlog12.yaml .
120120
...
121121
export GZ_CONFIG_PATH=$HOME/.gz/tools/configs
122122
```

examples/plugin/command_actor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ export GZ_SIM_SYSTEM_PLUGIN_PATH=`pwd`/build
2727

2828
Then run the demo world:
2929

30-
ign gazebo -v 4 command_actor.sdf -r
30+
gz sim -v 4 command_actor.sdf -r
3131

examples/plugin/custom_component/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ export GZ_SIM_SYSTEM_PLUGIN_PATH=`pwd`/build
2929

3030
Then run a world that loads the plugin as follows:
3131

32-
ign gazebo -s -v 4 custom_component.sdf
32+
gz sim -s -v 4 custom_component.sdf
3333

examples/plugin/custom_sensor_system/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ export GZ_SIM_SYSTEM_PLUGIN_PATH=`pwd`/build
3333

3434
Then load the example world:
3535

36-
ign gazebo -r odometer.sdf
36+
gz sim -r odometer.sdf
3737

3838
You should see a box slowly moving in a straight line.
3939

4040
Listen to the odometer data with:
4141

4242
```
43-
ign topic -e -t /world/odometer_world/model/model_with_sensor/link/link/sensor/an_odometer/odometer
43+
gz topic -e -t /world/odometer_world/model/model_with_sensor/link/link/sensor/an_odometer/odometer
4444
```
4545

examples/plugin/gui_system_plugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export IGN_GUI_PLUGIN_PATH=`pwd`/build
3434

3535
Then run a world, for example:
3636

37-
ign gazebo -v 4 shapes.sdf
37+
gz sim -v 4 shapes.sdf
3838

3939
From the GUI plugin menu on the top-right, choose "Gui System Plugin".
4040

examples/plugin/hello_world/HelloWorld.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void HelloWorld::PostUpdate(const gz::sim::UpdateInfo &_info,
4848
msg += "paused.";
4949

5050
// Messages printed with gzmsg only show when running with verbosity 3 or
51-
// higher (i.e. ign gazebo -v 3)
51+
// higher (i.e. gz sim -v 3)
5252
gzmsg << msg << std::endl;
5353
}
5454

examples/plugin/hello_world/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export GZ_SIM_SYSTEM_PLUGIN_PATH=`pwd`/build
3131

3232
Then load the example world:
3333

34-
ign gazebo -v 3 hello_world_plugin.sdf
34+
gz sim -v 3 hello_world_plugin.sdf
3535

3636
You should see green messages on the terminal like:
3737

0 commit comments

Comments
 (0)