@@ -23,12 +23,12 @@ def generate_launch_description():
23
23
mars_rover_demos_path = get_package_share_directory ('mars_rover' )
24
24
mars_rover_models_path = get_package_share_directory ('simulation' )
25
25
26
- env = {'IGN_GAZEBO_SYSTEM_PLUGIN_PATH ' :
27
- ':' .join ([environ .get ('IGN_GAZEBO_SYSTEM_PLUGIN_PATH ' , default = '' ),
26
+ env = {'GZ_SIM_SYSTEM_PLUGIN_PATH ' :
27
+ ':' .join ([environ .get ('GZ_SIM_SYSTEM_PLUGIN_PATH ' , default = '' ),
28
28
environ .get ('LD_LIBRARY_PATH' , default = '' )]),
29
- 'IGN_GAZEBO_RESOURCE_PATH ' :
30
- ':' .join ([environ . get ( 'IGN_GAZEBO_RESOURCE_PATH' , default = '' ), mars_rover_demos_path ])}
31
-
29
+ 'GZ_SIM_RESOURCE_PATH ' :
30
+ ':' .join ([mars_rover_demos_path ])}
31
+
32
32
urdf_model_path = os .path .join (mars_rover_models_path , 'models' , 'curiosity_path' ,
33
33
'urdf' , 'curiosity_mars_rover.xacro' )
34
34
mars_world_model = os .path .join (mars_rover_demos_path , 'worlds' , 'mars_curiosity.world' )
@@ -67,7 +67,7 @@ def generate_launch_description():
67
67
)
68
68
69
69
start_world = ExecuteProcess (
70
- cmd = ['ign gazebo ' , mars_world_model , '-r' ],
70
+ cmd = ['gz sim ' , mars_world_model , '-r' ],
71
71
output = 'screen' ,
72
72
additional_env = env ,
73
73
shell = True
@@ -97,7 +97,7 @@ def generate_launch_description():
97
97
output = 'screen' )
98
98
99
99
spawn = Node (
100
- package = 'ros_ign_gazebo ' , executable = 'create' ,
100
+ package = 'ros_gz_sim ' , executable = 'create' ,
101
101
arguments = [
102
102
'-name' , 'curiosity_mars_rover' ,
103
103
'-topic' , robot_description ,
@@ -110,7 +110,7 @@ def generate_launch_description():
110
110
111
111
## Control Components
112
112
113
- component_state_msg = '{name: "IgnitionSystem ", target_state: {id: 3, label: ""}}'
113
+ component_state_msg = '{name: "GazeboSimSystem ", target_state: {id: 3, label: ""}}'
114
114
115
115
## a hack to resolve current bug
116
116
set_hardware_interface_active = ExecuteProcess (
0 commit comments