Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate URDF Spawner #815

Merged
merged 3 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions webots_ros2_driver/webots_ros2_driver/ros2_supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def __init__(self):
self.create_subscription(String, 'remove_node', self.__remove_imported_node_callback, qos_profile_services_default)

def __spawn_urdf_robot_callback(self, request, response):
# Deprecated, remove in 2024.0.0
self.get_logger().warn('\033[33mThe URDF Spawner is deprecated. Please use the PROTO Spawner instead.\033[0m')
robot = request.robot

robot_name = robot.name if robot.name else ''
Expand Down
2 changes: 1 addition & 1 deletion webots_ros2_driver/webots_ros2_driver/urdf_spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_webots_driver_node(event, driver_node):
return


class URDFSpawner(ExecuteProcess):
class URDFSpawner(ExecuteProcess): # Deprecated, remove in 2024.0.0
def __init__(self, output='log', name=None, urdf_path=None, robot_description=None, relative_path_prefix=None,
translation='0 0 0', rotation='0 0 1 0', normal=False, box_collision=False, init_pos=None, **kwargs):
message = '{robot: {'
Expand Down