Skip to content

Commit

Permalink
Message formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Aug 29, 2019
1 parent 26275ba commit e6a00bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gazebo_ros/scripts/spawn_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ def entity_xml_cb(msg):

# If bond enabled, setup shutdown callback and wait for shutdown
if self.args.bond:
self.get_logger().info('Waiting for shutdown to delete \
entity {}'.format(self.args.entity))
self.get_logger().info('Waiting for shutdown to delete ' +
'entity [{}]'.format(self.args.entity))
try:
rclpy.spin(self)
except KeyboardInterrupt:
Expand Down Expand Up @@ -276,7 +276,7 @@ def _spawn_entity(self, entity_xml, initial_pose):
# TODO(shivesh): Wait for https://github.com/ros2/rclpy/issues/244
def _delete_entity(self):
# Delete entity from gazebo on shutdown if bond flag enabled
self.get_logger().info('Deleting entity {}'.format(self.args.entity))
self.get_logger().info('Deleting entity [{}]'.format(self.args.entity))
client = self.create_client(
DeleteEntity, '%s/delete_entity' % self.args.gazebo_namespace)
if client.wait_for_service(timeout_sec=5.0):
Expand All @@ -292,8 +292,8 @@ def _delete_entity(self):
break
rclpy.spin_once(self)
else:
self.get_logger().error('Service %s/delete_entity unavailable. \
Was Gazebo started with GazeboRosFactory?')
self.get_logger().error('Service %s/delete_entity unavailable. ' +
'Was Gazebo started with GazeboRosFactory?')

# def _set_model_configuration(self, joint_names, joint_positions):
# self.get_logger().info(
Expand Down

0 comments on commit e6a00bd

Please sign in to comment.