Skip to content

Commit

Permalink
Use member variables instead. (#653)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
caguero authored Nov 22, 2024
1 parent cfd0f8c commit 5c1251a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ros_gz_sim/ros_gz_sim/actions/gzserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from launch.frontend import Entity, expose_action, Parser
from launch.launch_context import LaunchContext
from launch.some_substitutions_type import SomeSubstitutionsType
from launch.substitutions import LaunchConfiguration, PythonExpression
from launch.substitutions import PythonExpression
from launch_ros.actions import ComposableNodeContainer, LoadComposableNodes, Node
from launch_ros.descriptions import ComposableNode

Expand Down Expand Up @@ -125,8 +125,8 @@ def execute(self, context: LaunchContext) -> Optional[List[Action]]:
package='ros_gz_sim',
executable='gzserver',
output='screen',
parameters=[{'world_sdf_file': LaunchConfiguration('world_sdf_file'),
'world_sdf_string': LaunchConfiguration('world_sdf_string')}],
parameters=[{'world_sdf_file': self.__world_sdf_file,
'world_sdf_string': self.__world_sdf_string}],
),
],
)
Expand All @@ -145,8 +145,8 @@ def execute(self, context: LaunchContext) -> Optional[List[Action]]:
package='ros_gz_sim',
plugin='ros_gz_sim::GzServer',
name='gz_server',
parameters=[{'world_sdf_file': LaunchConfiguration('world_sdf_file'),
'world_sdf_string': LaunchConfiguration('world_sdf_string')}],
parameters=[{'world_sdf_file': self.__world_sdf_file,
'world_sdf_string': self.__world_sdf_string}],
extra_arguments=[{'use_intra_process_comms': True}],
),
],
Expand All @@ -166,8 +166,8 @@ def execute(self, context: LaunchContext) -> Optional[List[Action]]:
package='ros_gz_sim',
plugin='ros_gz_sim::GzServer',
name='gz_server',
parameters=[{'world_sdf_file': LaunchConfiguration('world_sdf_file'),
'world_sdf_string': LaunchConfiguration('world_sdf_string')}],
parameters=[{'world_sdf_file': self.__world_sdf_file,
'world_sdf_string': self.__world_sdf_string}],
extra_arguments=[{'use_intra_process_comms': True}],
),
],
Expand Down

0 comments on commit 5c1251a

Please sign in to comment.