@@ -23,10 +23,10 @@ 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 ' :
29
+ 'GZ_SIM_RESOURCE_PATH ' :
30
30
':' .join ([mars_rover_demos_path ])}
31
31
32
32
urdf_model_path = os .path .join (mars_rover_models_path , 'models' , 'curiosity_path' ,
@@ -62,7 +62,7 @@ def generate_launch_description():
62
62
)
63
63
64
64
start_world = ExecuteProcess (
65
- cmd = ['ign gazebo ' , mars_world_model , '-r' ],
65
+ cmd = ['gz sim ' , mars_world_model , '-r' ],
66
66
output = 'screen' ,
67
67
additional_env = env ,
68
68
shell = True
@@ -76,7 +76,7 @@ def generate_launch_description():
76
76
parameters = [robot_description ])
77
77
78
78
spawn = Node (
79
- package = 'ros_ign_gazebo ' , executable = 'create' ,
79
+ package = 'ros_gz_sim ' , executable = 'create' ,
80
80
arguments = [
81
81
'-name' , 'curiosity_path' ,
82
82
'-topic' , robot_description ,
@@ -87,7 +87,7 @@ def generate_launch_description():
87
87
88
88
## Control Components
89
89
90
- component_state_msg = '{name: "IgnitionSystem ", target_state: {id: 3, label: ""}}'
90
+ component_state_msg = '{name: "GazeboSimSystem ", target_state: {id: 3, label: ""}}'
91
91
92
92
## a hack to resolve current bug
93
93
set_hardware_interface_active = ExecuteProcess (
@@ -133,9 +133,6 @@ def generate_launch_description():
133
133
output = 'screen'
134
134
)
135
135
136
-
137
-
138
-
139
136
return LaunchDescription ([
140
137
start_world ,
141
138
robot_state_publisher ,
0 commit comments