From 2117150406c43590e8a504fdb5290989bd624b94 Mon Sep 17 00:00:00 2001 From: ad-daniel Date: Wed, 30 Nov 2022 04:09:48 +0000 Subject: [PATCH] Sync submodule --- .../controller/c/webots/accelerometer.h | 2 +- .../include/controller/c/webots/altimeter.h | 2 +- .../include/controller/c/webots/brake.h | 2 +- .../include/controller/c/webots/camera.h | 2 +- .../c/webots/camera_recognition_object.h | 2 +- .../include/controller/c/webots/compass.h | 2 +- .../include/controller/c/webots/connector.h | 2 +- .../include/controller/c/webots/console.h | 2 +- .../controller/c/webots/contact_point.h | 2 +- .../include/controller/c/webots/device.h | 2 +- .../include/controller/c/webots/display.h | 2 +- .../controller/c/webots/distance_sensor.h | 2 +- .../include/controller/c/webots/emitter.h | 2 +- .../webots/include/controller/c/webots/gps.h | 2 +- .../webots/include/controller/c/webots/gyro.h | 2 +- .../controller/c/webots/inertial_unit.h | 2 +- .../include/controller/c/webots/joystick.h | 2 +- .../include/controller/c/webots/keyboard.h | 2 +- .../webots/include/controller/c/webots/led.h | 2 +- .../include/controller/c/webots/lidar.h | 2 +- .../include/controller/c/webots/lidar_point.h | 2 +- .../controller/c/webots/light_sensor.h | 2 +- .../include/controller/c/webots/microphone.h | 2 +- .../include/controller/c/webots/motor.h | 2 +- .../include/controller/c/webots/mouse.h | 2 +- .../include/controller/c/webots/mouse_state.h | 2 +- .../include/controller/c/webots/nodes.h | 2 +- .../webots/include/controller/c/webots/pen.h | 2 +- .../c/webots/plugins/robot_window/default.h | 2 +- .../generic_robot_window/generic.h | 2 +- .../plugins/robot_window/robot_window.h | 2 +- .../c/webots/plugins/robot_window/robot_wwi.h | 2 +- .../controller/c/webots/position_sensor.h | 2 +- .../include/controller/c/webots/radar.h | 2 +- .../controller/c/webots/radar_target.h | 2 +- .../include/controller/c/webots/radio.h | 2 +- .../controller/c/webots/range_finder.h | 2 +- .../include/controller/c/webots/receiver.h | 2 +- .../controller/c/webots/remote_control.h | 2 +- .../include/controller/c/webots/robot.h | 2 +- .../webots/include/controller/c/webots/skin.h | 2 +- .../include/controller/c/webots/speaker.h | 2 +- .../include/controller/c/webots/supervisor.h | 2 +- .../controller/c/webots/touch_sensor.h | 2 +- .../include/controller/c/webots/types.h | 2 +- .../controller/c/webots/utils/ansi_codes.h | 2 +- .../controller/c/webots/utils/motion.h | 2 +- .../controller/c/webots/utils/string.h | 2 +- .../controller/c/webots/utils/system.h | 2 +- .../include/controller/c/webots/vehicle/car.h | 2 +- .../controller/c/webots/vehicle/driver.h | 2 +- .../controller/cpp/webots/Accelerometer.hpp | 2 +- .../controller/cpp/webots/Altimeter.hpp | 2 +- .../include/controller/cpp/webots/Brake.hpp | 2 +- .../include/controller/cpp/webots/Camera.hpp | 2 +- .../include/controller/cpp/webots/Compass.hpp | 2 +- .../controller/cpp/webots/Connector.hpp | 2 +- .../include/controller/cpp/webots/Device.hpp | 2 +- .../include/controller/cpp/webots/Display.hpp | 2 +- .../controller/cpp/webots/DistanceSensor.hpp | 2 +- .../include/controller/cpp/webots/Emitter.hpp | 2 +- .../include/controller/cpp/webots/Field.hpp | 2 +- .../include/controller/cpp/webots/GPS.hpp | 2 +- .../include/controller/cpp/webots/Gyro.hpp | 2 +- .../controller/cpp/webots/ImageRef.hpp | 2 +- .../controller/cpp/webots/InertialUnit.hpp | 2 +- .../controller/cpp/webots/Joystick.hpp | 2 +- .../controller/cpp/webots/Keyboard.hpp | 2 +- .../include/controller/cpp/webots/LED.hpp | 2 +- .../include/controller/cpp/webots/Lidar.hpp | 2 +- .../controller/cpp/webots/LightSensor.hpp | 2 +- .../include/controller/cpp/webots/Motor.hpp | 2 +- .../include/controller/cpp/webots/Mouse.hpp | 2 +- .../include/controller/cpp/webots/Node.hpp | 2 +- .../include/controller/cpp/webots/Pen.hpp | 2 +- .../controller/cpp/webots/PositionSensor.hpp | 2 +- .../include/controller/cpp/webots/Radar.hpp | 2 +- .../controller/cpp/webots/RangeFinder.hpp | 2 +- .../controller/cpp/webots/Receiver.hpp | 2 +- .../include/controller/cpp/webots/Robot.hpp | 2 +- .../include/controller/cpp/webots/Skin.hpp | 2 +- .../include/controller/cpp/webots/Speaker.hpp | 2 +- .../controller/cpp/webots/Supervisor.hpp | 4 +- .../controller/cpp/webots/TouchSensor.hpp | 2 +- .../controller/cpp/webots/utils/AnsiCodes.hpp | 2 +- .../controller/cpp/webots/utils/Motion.hpp | 2 +- .../controller/cpp/webots/vehicle/Car.hpp | 2 +- .../controller/cpp/webots/vehicle/Driver.hpp | 2 +- .../webots/include/plugins/physics.h | 2 +- .../webots/include/plugins/radio.h | 2 +- .../webots/include/robot_window.h | 30 ++++++ webots_ros2_driver/webots/include/robot_wwi.h | 36 +++++++ .../webots/lib/controller/.gitignore | 4 - .../controller/python/controller/__init__.py | 70 ++++++------- .../python/controller/accelerometer.py | 6 +- .../controller/python/controller/altimeter.py | 6 +- .../python/controller/ansi_codes.py | 4 +- .../lib/controller/python/controller/brake.py | 12 +-- .../controller/python/controller/camera.py | 99 ++++++++++--------- .../controller/python/controller/compass.py | 6 +- .../controller/python/controller/connector.py | 6 +- .../controller/python/controller/constants.py | 4 +- .../controller/python/controller/device.py | 4 +- .../controller/python/controller/display.py | 8 +- .../python/controller/distance_sensor.py | 6 +- .../controller/python/controller/emitter.py | 6 +- .../lib/controller/python/controller/field.py | 56 ++++++----- .../lib/controller/python/controller/gps.py | 6 +- .../lib/controller/python/controller/gyro.py | 6 +- .../python/controller/inertial_unit.py | 6 +- .../controller/python/controller/joystick.py | 4 +- .../controller/python/controller/keyboard.py | 6 +- .../lib/controller/python/controller/led.py | 6 +- .../lib/controller/python/controller/lidar.py | 8 +- .../python/controller/lidar_point.py | 2 +- .../python/controller/light_sensor.py | 6 +- .../controller/python/controller/motion.py | 4 +- .../lib/controller/python/controller/motor.py | 12 +-- .../lib/controller/python/controller/mouse.py | 4 +- .../lib/controller/python/controller/node.py | 35 ++++--- .../lib/controller/python/controller/pen.py | 6 +- .../python/controller/position_sensor.py | 12 +-- .../lib/controller/python/controller/radar.py | 8 +- .../python/controller/radar_target.py | 2 +- .../python/controller/range_finder.py | 6 +- .../controller/python/controller/receiver.py | 6 +- .../lib/controller/python/controller/robot.py | 64 ++++++------ .../controller/python/controller/sensor.py | 6 +- .../lib/controller/python/controller/skin.py | 6 +- .../controller/python/controller/speaker.py | 6 +- .../python/controller/supervisor.py | 12 ++- .../python/controller/touch_sensor.py | 6 +- .../lib/controller/python/controller/wb.py | 7 +- .../lib/controller/python/vehicle/__init__.py | 2 +- .../lib/controller/python/vehicle/car.py | 2 +- .../lib/controller/python/vehicle/driver.py | 2 +- .../default/libraries/vehicle/Makefile | 2 +- .../default/libraries/vehicle/c/car/Makefile | 2 +- .../default/libraries/vehicle/c/car/src/car.c | 2 +- .../libraries/vehicle/c/car/src/car_private.h | 2 +- .../libraries/vehicle/c/driver/Makefile | 2 +- .../libraries/vehicle/c/driver/src/driver.c | 2 +- .../libraries/vehicle/cpp/car/Makefile | 2 +- .../libraries/vehicle/cpp/car/src/Car.cpp | 2 +- .../libraries/vehicle/cpp/driver/Makefile | 2 +- .../vehicle/cpp/driver/src/Driver.cpp | 2 +- .../default/libraries/vehicle/java/.gitignore | 4 - .../default/libraries/vehicle/java/Makefile | 2 +- .../webots/resources/Makefile.include | 2 +- .../webots/resources/Makefile.os.include | 2 +- .../libraries/generic_robot_window/Makefile | 2 +- .../libraries/generic_robot_window/generic.c | 2 +- .../webots/src/controller/Makefile | 2 +- .../webots/src/controller/c/Makefile | 2 +- .../webots/src/controller/c/abstract_camera.c | 2 +- .../webots/src/controller/c/abstract_camera.h | 2 +- .../webots/src/controller/c/accelerometer.c | 2 +- .../webots/src/controller/c/altimeter.c | 2 +- .../webots/src/controller/c/ansi_codes.c | 2 +- .../webots/src/controller/c/base64.c | 2 +- .../webots/src/controller/c/base64.h | 2 +- .../webots/src/controller/c/brake.c | 2 +- .../webots/src/controller/c/camera.c | 2 +- .../webots/src/controller/c/camera_private.h | 2 +- .../webots/src/controller/c/compass.c | 2 +- .../webots/src/controller/c/connector.c | 2 +- .../webots/src/controller/c/console.c | 2 +- .../src/controller/c/default_robot_window.c | 2 +- .../c/default_robot_window_private.h | 2 +- .../webots/src/controller/c/device.c | 2 +- .../webots/src/controller/c/device_private.h | 2 +- .../webots/src/controller/c/display.c | 2 +- .../webots/src/controller/c/display_private.h | 2 +- .../webots/src/controller/c/distance_sensor.c | 2 +- .../webots/src/controller/c/dynamic_library.c | 2 +- .../webots/src/controller/c/dynamic_library.h | 2 +- .../webots/src/controller/c/emitter.c | 2 +- .../webots/src/controller/c/file.c | 2 +- .../webots/src/controller/c/file.h | 2 +- .../webots/src/controller/c/g_image.c | 2 +- .../webots/src/controller/c/g_image.h | 2 +- .../webots/src/controller/c/g_pipe.c | 2 +- .../webots/src/controller/c/g_pipe.h | 2 +- .../webots/src/controller/c/gps.c | 2 +- .../webots/src/controller/c/gyro.c | 2 +- .../src/controller/c/html_robot_window.c | 2 +- .../controller/c/html_robot_window_private.h | 2 +- .../webots/src/controller/c/image.c | 2 +- .../webots/src/controller/c/image_private.h | 2 +- .../webots/src/controller/c/inertial_unit.c | 2 +- .../webots/src/controller/c/joystick.c | 2 +- .../src/controller/c/joystick_private.h | 2 +- .../webots/src/controller/c/keyboard.c | 2 +- .../src/controller/c/keyboard_private.h | 2 +- .../webots/src/controller/c/led.c | 2 +- .../webots/src/controller/c/lidar.c | 2 +- .../webots/src/controller/c/light_sensor.c | 2 +- .../webots/src/controller/c/messages.h | 2 +- .../webots/src/controller/c/microphone.c | 2 +- .../webots/src/controller/c/motion.c | 2 +- .../webots/src/controller/c/motion_private.h | 2 +- .../webots/src/controller/c/motor.c | 2 +- .../webots/src/controller/c/mouse.c | 2 +- .../webots/src/controller/c/mouse_private.h | 2 +- .../webots/src/controller/c/node.c | 2 +- .../webots/src/controller/c/pen.c | 2 +- .../webots/src/controller/c/percent.c | 2 +- .../webots/src/controller/c/percent.h | 2 +- .../webots/src/controller/c/position_sensor.c | 2 +- .../webots/src/controller/c/radar.c | 2 +- .../webots/src/controller/c/radio.c | 2 +- .../webots/src/controller/c/range_finder.c | 2 +- .../webots/src/controller/c/receiver.c | 2 +- .../webots/src/controller/c/remote_control.c | 2 +- .../src/controller/c/remote_control_private.h | 2 +- .../webots/src/controller/c/request.c | 2 +- .../webots/src/controller/c/request.h | 2 +- .../webots/src/controller/c/robot.c | 2 +- .../webots/src/controller/c/robot_private.h | 2 +- .../webots/src/controller/c/robot_window.c | 2 +- .../src/controller/c/robot_window_private.h | 2 +- .../webots/src/controller/c/scheduler.c | 5 +- .../webots/src/controller/c/scheduler.h | 2 +- .../webots/src/controller/c/skin.c | 2 +- .../webots/src/controller/c/speaker.c | 2 +- .../webots/src/controller/c/string.c | 2 +- .../webots/src/controller/c/supervisor.c | 5 +- .../src/controller/c/supervisor_private.h | 2 +- .../webots/src/controller/c/system.c | 2 +- .../webots/src/controller/c/tcp_client.c | 2 +- .../webots/src/controller/c/tcp_client.h | 2 +- .../webots/src/controller/c/touch_sensor.c | 2 +- .../src/controller/cpp/Accelerometer.cpp | 2 +- .../webots/src/controller/cpp/Altimeter.cpp | 2 +- .../webots/src/controller/cpp/Brake.cpp | 2 +- .../webots/src/controller/cpp/Camera.cpp | 2 +- .../webots/src/controller/cpp/Compass.cpp | 2 +- .../webots/src/controller/cpp/Connector.cpp | 2 +- .../webots/src/controller/cpp/Device.cpp | 2 +- .../webots/src/controller/cpp/Display.cpp | 2 +- .../src/controller/cpp/DistanceSensor.cpp | 2 +- .../webots/src/controller/cpp/Emitter.cpp | 2 +- .../webots/src/controller/cpp/Field.cpp | 2 +- .../webots/src/controller/cpp/GPS.cpp | 2 +- .../webots/src/controller/cpp/Gyro.cpp | 2 +- .../src/controller/cpp/InertialUnit.cpp | 2 +- .../webots/src/controller/cpp/Joystick.cpp | 2 +- .../webots/src/controller/cpp/Keyboard.cpp | 2 +- .../webots/src/controller/cpp/LED.cpp | 2 +- .../webots/src/controller/cpp/Lidar.cpp | 2 +- .../webots/src/controller/cpp/LightSensor.cpp | 2 +- .../webots/src/controller/cpp/Makefile | 2 +- .../webots/src/controller/cpp/Motion.cpp | 2 +- .../webots/src/controller/cpp/Motor.cpp | 2 +- .../webots/src/controller/cpp/Mouse.cpp | 2 +- .../webots/src/controller/cpp/Node.cpp | 2 +- .../webots/src/controller/cpp/Pen.cpp | 2 +- .../src/controller/cpp/PositionSensor.cpp | 2 +- .../webots/src/controller/cpp/Radar.cpp | 2 +- .../webots/src/controller/cpp/RangeFinder.cpp | 2 +- .../webots/src/controller/cpp/Receiver.cpp | 2 +- .../webots/src/controller/cpp/Robot.cpp | 2 +- .../webots/src/controller/cpp/Skin.cpp | 2 +- .../webots/src/controller/cpp/Speaker.cpp | 2 +- .../webots/src/controller/cpp/Supervisor.cpp | 2 +- .../webots/src/controller/cpp/TouchSensor.cpp | 2 +- .../webots/src/controller/java/Makefile | 2 +- .../webots/src/controller/java/controller.i | 2 +- .../webots/src/controller/matlab/Makefile | 2 +- .../webots/src/controller/matlab/mgenerate.py | 2 +- webots_ros2_driver/webots/src/stb/.travis.yml | 5 - 271 files changed, 583 insertions(+), 501 deletions(-) create mode 100644 webots_ros2_driver/webots/include/robot_window.h create mode 100644 webots_ros2_driver/webots/include/robot_wwi.h delete mode 100644 webots_ros2_driver/webots/projects/default/libraries/vehicle/java/.gitignore delete mode 100644 webots_ros2_driver/webots/src/stb/.travis.yml diff --git a/webots_ros2_driver/webots/include/controller/c/webots/accelerometer.h b/webots_ros2_driver/webots/include/controller/c/webots/accelerometer.h index 1e834405e..803a7b52d 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/accelerometer.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/accelerometer.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/altimeter.h b/webots_ros2_driver/webots/include/controller/c/webots/altimeter.h index feda2058e..4aa06d8ce 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/altimeter.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/altimeter.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/brake.h b/webots_ros2_driver/webots/include/controller/c/webots/brake.h index a8dff9617..97e10fbab 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/brake.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/brake.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/camera.h b/webots_ros2_driver/webots/include/controller/c/webots/camera.h index b316da761..8687337d1 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/camera.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/camera.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/camera_recognition_object.h b/webots_ros2_driver/webots/include/controller/c/webots/camera_recognition_object.h index 13c0a9ed8..467df32fe 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/camera_recognition_object.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/camera_recognition_object.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/compass.h b/webots_ros2_driver/webots/include/controller/c/webots/compass.h index 08a91b18e..cf97860a2 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/compass.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/compass.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/connector.h b/webots_ros2_driver/webots/include/controller/c/webots/connector.h index 40eb07b4f..ad50e3486 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/connector.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/connector.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/console.h b/webots_ros2_driver/webots/include/controller/c/webots/console.h index 70bc55058..3d0fca968 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/console.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/console.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/contact_point.h b/webots_ros2_driver/webots/include/controller/c/webots/contact_point.h index a544015e5..c6b3173bf 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/contact_point.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/contact_point.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/device.h b/webots_ros2_driver/webots/include/controller/c/webots/device.h index a3411d323..c73cb5fbe 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/device.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/device.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/display.h b/webots_ros2_driver/webots/include/controller/c/webots/display.h index 49e1908ec..e486671b6 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/display.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/display.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/distance_sensor.h b/webots_ros2_driver/webots/include/controller/c/webots/distance_sensor.h index e962d347a..864f6c166 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/distance_sensor.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/distance_sensor.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/emitter.h b/webots_ros2_driver/webots/include/controller/c/webots/emitter.h index 17e1fd786..279672df1 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/emitter.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/emitter.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/gps.h b/webots_ros2_driver/webots/include/controller/c/webots/gps.h index 86a9d7933..0d029f0f5 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/gps.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/gps.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/gyro.h b/webots_ros2_driver/webots/include/controller/c/webots/gyro.h index 491b9a55e..743a024a3 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/gyro.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/gyro.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/inertial_unit.h b/webots_ros2_driver/webots/include/controller/c/webots/inertial_unit.h index 13339d0fa..d86b39f14 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/inertial_unit.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/inertial_unit.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/joystick.h b/webots_ros2_driver/webots/include/controller/c/webots/joystick.h index 5e850efac..555cd7ccf 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/joystick.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/joystick.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/keyboard.h b/webots_ros2_driver/webots/include/controller/c/webots/keyboard.h index 18d3f313e..bb4e99fb1 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/keyboard.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/keyboard.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/led.h b/webots_ros2_driver/webots/include/controller/c/webots/led.h index fb5eb77e3..cd79efc3d 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/led.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/led.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/lidar.h b/webots_ros2_driver/webots/include/controller/c/webots/lidar.h index e443a5948..d0e7723e9 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/lidar.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/lidar.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/lidar_point.h b/webots_ros2_driver/webots/include/controller/c/webots/lidar_point.h index 48cdeaa67..af7917285 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/lidar_point.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/lidar_point.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/light_sensor.h b/webots_ros2_driver/webots/include/controller/c/webots/light_sensor.h index 4388da029..af6234ae1 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/light_sensor.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/light_sensor.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/microphone.h b/webots_ros2_driver/webots/include/controller/c/webots/microphone.h index 72b0e5cad..ea0f8aafd 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/microphone.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/microphone.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/motor.h b/webots_ros2_driver/webots/include/controller/c/webots/motor.h index 6aabcf088..d0d49c6ac 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/motor.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/motor.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/mouse.h b/webots_ros2_driver/webots/include/controller/c/webots/mouse.h index cc5bd1003..00002d1df 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/mouse.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/mouse.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/mouse_state.h b/webots_ros2_driver/webots/include/controller/c/webots/mouse_state.h index 38c13a107..0208d33b3 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/mouse_state.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/mouse_state.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/nodes.h b/webots_ros2_driver/webots/include/controller/c/webots/nodes.h index 5f5e8edcc..8cf1de287 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/nodes.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/nodes.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/pen.h b/webots_ros2_driver/webots/include/controller/c/webots/pen.h index dfd1312dc..2d414ab2d 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/pen.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/pen.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/default.h b/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/default.h index 080d34449..c5435d7c5 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/default.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/default.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/generic_robot_window/generic.h b/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/generic_robot_window/generic.h index 2a24b13dd..d12bea238 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/generic_robot_window/generic.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/generic_robot_window/generic.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/robot_window.h b/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/robot_window.h index 602e2e0d0..425a2ec9c 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/robot_window.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/robot_window.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/robot_wwi.h b/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/robot_wwi.h index 2b2d8d8c4..10dc930f8 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/robot_wwi.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/plugins/robot_window/robot_wwi.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/position_sensor.h b/webots_ros2_driver/webots/include/controller/c/webots/position_sensor.h index a5783e54d..e8707b548 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/position_sensor.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/position_sensor.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/radar.h b/webots_ros2_driver/webots/include/controller/c/webots/radar.h index 9d0e9a928..0ff8adf43 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/radar.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/radar.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/radar_target.h b/webots_ros2_driver/webots/include/controller/c/webots/radar_target.h index 62fd5d282..5c0c29f39 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/radar_target.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/radar_target.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/radio.h b/webots_ros2_driver/webots/include/controller/c/webots/radio.h index d39a56752..758107227 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/radio.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/radio.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/range_finder.h b/webots_ros2_driver/webots/include/controller/c/webots/range_finder.h index 78da65e31..38bbda001 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/range_finder.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/range_finder.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/receiver.h b/webots_ros2_driver/webots/include/controller/c/webots/receiver.h index 6eea5ceaf..2c5a89ab7 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/receiver.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/receiver.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/remote_control.h b/webots_ros2_driver/webots/include/controller/c/webots/remote_control.h index f5f704649..dbc64788c 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/remote_control.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/remote_control.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/robot.h b/webots_ros2_driver/webots/include/controller/c/webots/robot.h index d114f8af2..8bf96cf84 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/robot.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/robot.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/skin.h b/webots_ros2_driver/webots/include/controller/c/webots/skin.h index 620e87fc3..0c04b01df 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/skin.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/skin.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/speaker.h b/webots_ros2_driver/webots/include/controller/c/webots/speaker.h index 944a2df0a..6cc0c0d46 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/speaker.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/speaker.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/supervisor.h b/webots_ros2_driver/webots/include/controller/c/webots/supervisor.h index 435797490..d571ec65f 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/supervisor.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/supervisor.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/touch_sensor.h b/webots_ros2_driver/webots/include/controller/c/webots/touch_sensor.h index 573b7846d..1e097d891 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/touch_sensor.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/touch_sensor.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/types.h b/webots_ros2_driver/webots/include/controller/c/webots/types.h index 9fd8fffc6..0c408421d 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/types.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/types.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/utils/ansi_codes.h b/webots_ros2_driver/webots/include/controller/c/webots/utils/ansi_codes.h index 17e70f4c1..f6883b11f 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/utils/ansi_codes.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/utils/ansi_codes.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/utils/motion.h b/webots_ros2_driver/webots/include/controller/c/webots/utils/motion.h index d838a0565..f76cbcd6d 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/utils/motion.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/utils/motion.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/utils/string.h b/webots_ros2_driver/webots/include/controller/c/webots/utils/string.h index c322b5e1e..c9da95ba6 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/utils/string.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/utils/string.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/utils/system.h b/webots_ros2_driver/webots/include/controller/c/webots/utils/system.h index 47abc0f40..c92ebdd9f 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/utils/system.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/utils/system.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/vehicle/car.h b/webots_ros2_driver/webots/include/controller/c/webots/vehicle/car.h index 8822d270b..0ec44c8c4 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/vehicle/car.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/vehicle/car.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/c/webots/vehicle/driver.h b/webots_ros2_driver/webots/include/controller/c/webots/vehicle/driver.h index 9b97c13c9..812bf30b4 100644 --- a/webots_ros2_driver/webots/include/controller/c/webots/vehicle/driver.h +++ b/webots_ros2_driver/webots/include/controller/c/webots/vehicle/driver.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Accelerometer.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Accelerometer.hpp index 8c89b7cc6..19bdf83a1 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Accelerometer.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Accelerometer.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Altimeter.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Altimeter.hpp index 2be38aedf..98378ef20 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Altimeter.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Altimeter.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Brake.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Brake.hpp index b1e87e17f..4897afe52 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Brake.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Brake.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Camera.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Camera.hpp index 1a43cf964..170535e17 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Camera.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Camera.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Compass.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Compass.hpp index e737486f8..856d78031 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Compass.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Compass.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Connector.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Connector.hpp index f624db67c..5f43bcbb1 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Connector.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Connector.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Device.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Device.hpp index b9b884d04..a4e722339 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Device.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Device.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Display.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Display.hpp index f41cb555d..cf4fa9d63 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Display.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Display.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/DistanceSensor.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/DistanceSensor.hpp index 52f9b333f..064160cd8 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/DistanceSensor.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/DistanceSensor.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Emitter.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Emitter.hpp index 5e199cb3e..dd8256448 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Emitter.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Emitter.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Field.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Field.hpp index 18cc39b41..2dd410e7f 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Field.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Field.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/GPS.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/GPS.hpp index eec05623b..35948e954 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/GPS.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/GPS.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Gyro.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Gyro.hpp index 235b6da28..355a99b20 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Gyro.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Gyro.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/ImageRef.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/ImageRef.hpp index 2991065ff..ed705f76c 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/ImageRef.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/ImageRef.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/InertialUnit.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/InertialUnit.hpp index c76111729..203304619 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/InertialUnit.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/InertialUnit.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Joystick.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Joystick.hpp index c7b593441..00275ac6f 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Joystick.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Joystick.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Keyboard.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Keyboard.hpp index fabf2dc26..16e34d1da 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Keyboard.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Keyboard.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/LED.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/LED.hpp index f49d9565c..15e4bf0e5 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/LED.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/LED.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Lidar.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Lidar.hpp index ffb98911b..bb25d9a9c 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Lidar.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Lidar.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/LightSensor.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/LightSensor.hpp index d2102bda4..c70b62d55 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/LightSensor.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/LightSensor.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Motor.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Motor.hpp index f5a75318c..1d700b625 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Motor.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Motor.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Mouse.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Mouse.hpp index 2f8f7b995..d06fc6a0a 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Mouse.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Mouse.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Node.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Node.hpp index 8cb3be9e6..30b55a774 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Node.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Node.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Pen.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Pen.hpp index 0c3388f95..2e32b3bde 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Pen.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Pen.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/PositionSensor.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/PositionSensor.hpp index 51aaeeeb6..7dd0e9717 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/PositionSensor.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/PositionSensor.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Radar.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Radar.hpp index c33253d12..515faa033 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Radar.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Radar.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/RangeFinder.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/RangeFinder.hpp index cebf3c743..701811bdd 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/RangeFinder.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/RangeFinder.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Receiver.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Receiver.hpp index e8c241659..079103e32 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Receiver.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Receiver.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Robot.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Robot.hpp index 90b3ab846..1f287c4cb 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Robot.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Robot.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Skin.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Skin.hpp index c49978083..16a97f946 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Skin.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Skin.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Speaker.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Speaker.hpp index 88a2d9f4d..0c1110c60 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Speaker.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Speaker.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/Supervisor.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/Supervisor.hpp index ac8bb9441..467b053a5 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/Supervisor.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/Supervisor.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,7 +51,7 @@ namespace webots { bool movieFailed() const; virtual void setLabel(int id, const std::string &label, double xpos, double ypos, double size, int color, - double transparency, const std::string &font = "Arial"); + double transparency = 0, const std::string &font = "Arial"); Node *getRoot() const; Node *getSelf() const; Node *getFromDef(const std::string &name) const; diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/TouchSensor.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/TouchSensor.hpp index f7a0f6bd7..bf707d310 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/TouchSensor.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/TouchSensor.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/utils/AnsiCodes.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/utils/AnsiCodes.hpp index b7cf6efd6..612fb15b3 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/utils/AnsiCodes.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/utils/AnsiCodes.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/utils/Motion.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/utils/Motion.hpp index 1b3a6fb18..6cc7cc108 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/utils/Motion.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/utils/Motion.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/vehicle/Car.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/vehicle/Car.hpp index 02b40d376..f428c9418 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/vehicle/Car.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/vehicle/Car.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/controller/cpp/webots/vehicle/Driver.hpp b/webots_ros2_driver/webots/include/controller/cpp/webots/vehicle/Driver.hpp index 12f93fa2d..b2629a23b 100644 --- a/webots_ros2_driver/webots/include/controller/cpp/webots/vehicle/Driver.hpp +++ b/webots_ros2_driver/webots/include/controller/cpp/webots/vehicle/Driver.hpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/plugins/physics.h b/webots_ros2_driver/webots/include/plugins/physics.h index 56ef224e6..b9cb7b91f 100644 --- a/webots_ros2_driver/webots/include/plugins/physics.h +++ b/webots_ros2_driver/webots/include/plugins/physics.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/plugins/radio.h b/webots_ros2_driver/webots/include/plugins/radio.h index 2f0532a73..79b69ac25 100644 --- a/webots_ros2_driver/webots/include/plugins/radio.h +++ b/webots_ros2_driver/webots/include/plugins/radio.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/include/robot_window.h b/webots_ros2_driver/webots/include/robot_window.h new file mode 100644 index 000000000..425a2ec9c --- /dev/null +++ b/webots_ros2_driver/webots/include/robot_window.h @@ -0,0 +1,30 @@ +/* + * Copyright 1996-2023 Cyberbotics Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef WB_ROBOT_WINDOW_H +#define WB_ROBOT_WINDOW_H + +#ifdef __cplusplus +extern "C" { +#endif + +void *wb_robot_window_custom_function(void *); + +#ifdef __cplusplus +} +#endif + +#endif /* WB_ROBOT_WINDOW_H */ diff --git a/webots_ros2_driver/webots/include/robot_wwi.h b/webots_ros2_driver/webots/include/robot_wwi.h new file mode 100644 index 000000000..10dc930f8 --- /dev/null +++ b/webots_ros2_driver/webots/include/robot_wwi.h @@ -0,0 +1,36 @@ +/* + * Copyright 1996-2023 Cyberbotics Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef WB_ROBOT_WWI_H +#define WB_ROBOT_WWI_H + +#ifdef __cplusplus +#include +extern "C" { +#else +#include +#endif + +void wb_robot_wwi_send(const char *data, int size); +const char *wb_robot_wwi_receive(int *size); +const char *wb_robot_wwi_receive_text(); +#define wb_robot_wwi_send_text(t) wb_robot_wwi_send(t, strlen(t) + 1) + +#ifdef __cplusplus +} +#endif + +#endif /* WB_ROBOT_WWI_H */ diff --git a/webots_ros2_driver/webots/lib/controller/.gitignore b/webots_ros2_driver/webots/lib/controller/.gitignore index 259d2720d..0e997d177 100644 --- a/webots_ros2_driver/webots/lib/controller/.gitignore +++ b/webots_ros2_driver/webots/lib/controller/.gitignore @@ -6,8 +6,4 @@ /python38 /python39 /python310 -/python37_brew -/python38_brew -/python39_brew -/python310_brew /*.so.* diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/__init__.py b/webots_ros2_driver/webots/lib/controller/python/controller/__init__.py index aa71de125..5ea401d20 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/__init__.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/__init__.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,36 +12,38 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.field import Field # noqa -from controller.node import Node # noqa -from controller.ansi_codes import AnsiCodes # noqa -from controller.accelerometer import Accelerometer # noqa -from controller.altimeter import Altimeter # noqa -from controller.brake import Brake # noqa -from controller.camera import Camera # noqa -from controller.compass import Compass # noqa -from controller.connector import Connector # noqa -from controller.display import Display # noqa -from controller.distance_sensor import DistanceSensor # noqa -from controller.emitter import Emitter # noqa -from controller.gps import GPS # noqa -from controller.gyro import Gyro # noqa -from controller.inertial_unit import InertialUnit # noqa -from controller.led import LED # noqa -from controller.lidar import Lidar # noqa -from controller.light_sensor import LightSensor # noqa -from controller.motor import Motor # noqa -from controller.position_sensor import PositionSensor # noqa -from controller.radar import Radar # noqa -from controller.range_finder import RangeFinder # noqa -from controller.receiver import Receiver # noqa -from controller.robot import Robot # noqa -from controller.skin import Skin # noqa -from controller.speaker import Speaker # noqa -from controller.supervisor import Supervisor # noqa -from controller.touch_sensor import TouchSensor # noqa -from controller.keyboard import Keyboard # noqa -from controller.mouse import Mouse # noqa -from controller.mouse import MouseState # noqa -from controller.joystick import Joystick # noqa -from controller.motion import Motion # noqa +from controller.field import Field # noqa +from controller.node import Node, ContactPoint # noqa +from controller.ansi_codes import AnsiCodes # noqa +from controller.accelerometer import Accelerometer # noqa +from controller.altimeter import Altimeter # noqa +from controller.brake import Brake # noqa +from controller.camera import Camera, CameraRecognitionObject # noqa +from controller.compass import Compass # noqa +from controller.connector import Connector # noqa +from controller.display import Display # noqa +from controller.distance_sensor import DistanceSensor # noqa +from controller.emitter import Emitter # noqa +from controller.gps import GPS # noqa +from controller.gyro import Gyro # noqa +from controller.inertial_unit import InertialUnit # noqa +from controller.led import LED # noqa +from controller.lidar import Lidar # noqa +from controller.lidar_point import LidarPoint # noqa +from controller.light_sensor import LightSensor # noqa +from controller.motor import Motor # noqa +from controller.position_sensor import PositionSensor # noqa +from controller.radar import Radar # noqa +from controller.radar_target import RadarTarget # noqa +from controller.range_finder import RangeFinder # noqa +from controller.receiver import Receiver # noqa +from controller.robot import Robot # noqa +from controller.skin import Skin # noqa +from controller.speaker import Speaker # noqa +from controller.supervisor import Supervisor # noqa +from controller.touch_sensor import TouchSensor # noqa +from controller.keyboard import Keyboard # noqa +from controller.mouse import Mouse # noqa +from controller.mouse import MouseState # noqa +from controller.joystick import Joystick # noqa +from controller.motion import Motion # noqa diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/accelerometer.py b/webots_ros2_driver/webots/lib/controller/python/controller/accelerometer.py index 1850a69ee..0d964f5d8 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/accelerometer.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/accelerometer.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.sensor import Sensor -from controller.wb import wb +from .sensor import Sensor +from .wb import wb import ctypes import typing diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/altimeter.py b/webots_ros2_driver/webots/lib/controller/python/controller/altimeter.py index cdea3b8ec..e02fb03fa 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/altimeter.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/altimeter.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.sensor import Sensor -from controller.wb import wb +from .sensor import Sensor +from .wb import wb import ctypes import typing diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/ansi_codes.py b/webots_ros2_driver/webots/lib/controller/python/controller/ansi_codes.py index e17f0ef03..6c96b2953 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/ansi_codes.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/ansi_codes.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.constants import constant +from .constants import constant class AnsiCodes: diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/brake.py b/webots_ros2_driver/webots/lib/controller/python/controller/brake.py index 1f9f4d81b..1775182fa 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/brake.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/brake.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ # limitations under the License. import ctypes -from controller.constants import constant -from controller.device import Device -from controller.wb import wb +from .constants import constant +from .device import Device +from .wb import wb from typing import Union @@ -42,13 +42,13 @@ def getPositionSensor(self): @property def motor(self): - from controller.motor import Motor + from .motor import Motor tag = wb.wb_brake_get_motor(self._tag) return None if tag == 0 else Motor(tag) @property def position_sensor(self): - from controller.position_sensor import PositionSensor + from .position_sensor import PositionSensor tag = wb.wb_brake_get_position_sensor(self._tag) return None if tag == 0 else PositionSensor(tag) diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/camera.py b/webots_ros2_driver/webots/lib/controller/python/controller/camera.py index b903af73e..05b335bd0 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/camera.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/camera.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,11 +13,54 @@ # limitations under the License. import ctypes -from controller.sensor import Sensor -from controller.wb import wb +from .sensor import Sensor +from .wb import wb from typing import List, Union +class CameraRecognitionObject(ctypes.Structure): + _fields_ = [('id', ctypes.c_int), + ('position', ctypes.c_double * 3), + ('orientation', ctypes.c_double * 4), + ('size', ctypes.c_double * 2), + ('position_on_image', ctypes.c_int * 2), + ('size_on_image', ctypes.c_int * 2), + ('number_of_colors', ctypes.c_int), + ('colors', ctypes.POINTER(ctypes.c_double)), + ('_model', ctypes.c_char_p)] + + def getId(self) -> int: + return self.id + + def getPosition(self) -> List[float]: + return self.position + + def getOrientation(self) -> List[float]: + return self.orientation + + def getSize(self) -> List[float]: + return self.size + + def getPositionOnImage(self) -> List[int]: + return self.position_on_image + + def getSizeOnImage(self) -> List[int]: + return self.size_on_image + + def getNumberOfColors(self) -> int: + return self.number_of_colors + + def getColors(self) -> List[float]: + return self.colors + + def getModel(self) -> str: + return self.model + + @property + def model(self) -> str: + return self._model.decode() + + class Camera(Sensor): wb.wb_camera_get_image.restype = ctypes.POINTER(ctypes.c_ubyte) wb.wb_camera_recognition_get_segmentation_image.restype = ctypes.POINTER(ctypes.c_ubyte) @@ -52,7 +95,7 @@ def getHeight(self) -> int: return self.height def getImage(self) -> bytes: - return self.image + return bytes(self.image[:self.width * self.height * 4]) def getImageArray(self) -> List[List[List[int]]]: array = [] @@ -118,6 +161,10 @@ def setFov(self, f: float): def image(self): return wb.wb_camera_get_image(self._tag) + @property + def segmentation_image(self): + return wb.wb_camera_recognition_get_segmentation_image(self._tag) + @property def exposure(self) -> float: return wb.wb_camera_get_exposure(self._tag) @@ -174,48 +221,6 @@ def near(self) -> float: def width(self) -> int: return wb.wb_camera_get_width(self._tag) - class CameraRecognitionObject(ctypes.Structure): - _fields_ = [('id', ctypes.c_int), - ('position', ctypes.c_double * 3), - ('orientation', ctypes.c_double * 4), - ('size', ctypes.c_double * 2), - ('position_on_image', ctypes.c_int * 2), - ('size_on_image', ctypes.c_int * 2), - ('number_of_colors', ctypes.c_int), - ('colors', ctypes.POINTER(ctypes.c_double)), - ('_model', ctypes.c_char_p)] - - def getId(self) -> int: - return self.id - - def getPosition(self) -> List[float]: - return self.position - - def getOrientation(self) -> List[float]: - return self.orientation - - def getSize(self) -> List[float]: - return self.size - - def getPositionOnImage(self) -> List[int]: - return self.position_on_image - - def getSizeOnImage(self) -> List[int]: - return self.size_on_image - - def getNumberOfColors(self) -> int: - return self.number_of_colors - - def getColors(self) -> List[float]: - return self.colors - - def getModel(self) -> str: - return self.model - - @property - def model(self) -> str: - return self._model.decode() - wb.wb_camera_recognition_get_objects.restype = ctypes.POINTER(CameraRecognitionObject) def getRecognitionNumberOfObjects(self) -> int: @@ -249,7 +254,7 @@ def isRecognitionSegmentationEnabled(self) -> bool: return wb.wb_camera_recognition_is_segmentation_enabled(self._tag) != 0 def getRecognitionSegmentationImage(self) -> bytes: - return wb.wb_camera_recognition_get_segmentation_image(self._tag) + return bytes(self.segmentation_image[:self.width * self.height * 4]) def getRecognitionSegmentationImageArray(self) -> List[List[List[int]]]: array = [] diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/compass.py b/webots_ros2_driver/webots/lib/controller/python/controller/compass.py index be4527496..b99b77d40 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/compass.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/compass.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.sensor import Sensor -from controller.wb import wb +from .sensor import Sensor +from .wb import wb import ctypes import typing diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/connector.py b/webots_ros2_driver/webots/lib/controller/python/controller/connector.py index 4e0be5b50..2f03d39e7 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/connector.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/connector.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb -from controller.device import Device +from .wb import wb +from .device import Device from typing import Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/constants.py b/webots_ros2_driver/webots/lib/controller/python/controller/constants.py index 362ffee03..a094e97eb 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/constants.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/constants.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ # limitations under the License. import ctypes -from controller.wb import wb +from .wb import wb def constant(name, type=int): diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/device.py b/webots_ros2_driver/webots/lib/controller/python/controller/device.py index 290e96fe5..cf0b6e46f 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/device.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/device.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb +from .wb import wb import ctypes from typing import Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/display.py b/webots_ros2_driver/webots/lib/controller/python/controller/display.py index 997f141a1..27bc76326 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/display.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/display.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ # limitations under the License. import ctypes -from controller.wb import wb -from controller.camera import Camera -from controller.device import Device +from .wb import wb +from .camera import Camera +from .device import Device from typing import Union, List diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/distance_sensor.py b/webots_ros2_driver/webots/lib/controller/python/controller/distance_sensor.py index 62fdcf234..28e65c3c9 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/distance_sensor.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/distance_sensor.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,8 +13,8 @@ # limitations under the License. import ctypes -from controller.wb import wb -from controller.sensor import Sensor +from .wb import wb +from .sensor import Sensor from typing import Union, List diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/emitter.py b/webots_ros2_driver/webots/lib/controller/python/controller/emitter.py index 50ed4cc78..bb0b97e9d 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/emitter.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/emitter.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,8 +14,8 @@ import struct import sys -from controller.wb import wb -from controller.device import Device +from .wb import wb +from .device import Device import ctypes from typing import Union, List diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/field.py b/webots_ros2_driver/webots/lib/controller/python/controller/field.py index 3b0038fec..d30ff2bbc 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/field.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/field.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ # limitations under the License. import ctypes -from controller.wb import wb -from controller.constants import constant -import struct +from .wb import wb +from .constants import constant +import sys import typing @@ -155,16 +155,28 @@ def setSFFloat(self, value: float): self.value = value def setSFVec2f(self, value: typing.List[float]): - self.value = value + if len(value) == 2: + self.value = value + else: + print("Error: setSFVec2f(): length of 'value' argument should be 2.", file=sys.stderr) def setSFVec3f(self, value: typing.List[float]): - self.value = value + if len(value) == 3: + self.value = value + else: + print("Error: setSFVec3f(): length of 'value' argument should be 3.", file=sys.stderr) def setSFRotation(self, value: typing.List[float]): - self.value = value + if len(value) == 4: + self.value = value + else: + print("Error: setSFRotation(): length of 'value' argument should be 4.", file=sys.stderr) def setSFColor(self, value: typing.List[float]): - self.value = value + if len(value) == 3: + self.value = value + else: + print("Error: setSFColor(): length of 'value' argument should be 3.", file=sys.stderr) def setSFString(self, value: str): self.value = value @@ -179,20 +191,16 @@ def setMFFloat(self, index, value: float): wb.wb_supervisor_field_set_mf_float(self._ref, index, ctypes.c_double(value)) def setMFVec2f(self, index, value: typing.List[float]): - data = struct.pack('dd', *value) - wb.wb_supervisor_field_set_mf_vec2f(self._ref, index, ctypes.POINTER(ctypes.c_ubyte(data))) + wb.wb_supervisor_field_set_mf_vec2f(self._ref, index, (ctypes.c_double * 2)(*value)) def setMFVec3f(self, index, value: typing.List[float]): - data = struct.pack('ddd', *value) - wb.wb_supervisor_field_set_mf_vec3f(self._ref, index, ctypes.POINTER(ctypes.c_ubyte(data))) + wb.wb_supervisor_field_set_mf_vec3f(self._ref, index, (ctypes.c_double * 3)(*value)) def setMFRotation(self, index, value: typing.List[float]): - data = struct.pack('dddd', *value) - wb.wb_supervisor_field_set_mf_rotation(self._ref, index, ctypes.POINTER(ctypes.c_ubyte(data))) + wb.wb_supervisor_field_set_mf_rotation(self._ref, index, (ctypes.c_double * 4)(*value)) def setMFColor(self, index, value: typing.List[float]): - data = struct.pack('ddd', *value) - wb.wb_supervisor_field_set_mf_color(self._ref, index, ctypes.POINTER(ctypes.c_ubyte(data))) + wb.wb_supervisor_field_set_mf_color(self._ref, index, (ctypes.c_double * 3)(*value)) def setMFString(self, index, value: str): wb.wb_supervisor_field_set_mf_string(self._ref, index, str.encode(value)) @@ -207,20 +215,16 @@ def insertMFFloat(self, index, value: float): wb.wb_supervisor_field_insert_mf_float(self._ref, index, ctypes.c_double(value)) def insertMFVec2f(self, index, value: typing.List[float]): - data = struct.pack('dd', *value) - wb.wb_supervisor_field_insert_mf_vec2f(self._ref, index, ctypes.POINTER(ctypes.c_ubyte(data))) + wb.wb_supervisor_field_insert_mf_vec2f(self._ref, index, (ctypes.c_double * 2)(*value)) def insertMFVec3f(self, index, value: typing.List[float]): - data = struct.pack('ddd', *value) - wb.wb_supervisor_field_insert_mf_vec3f(self._ref, index, ctypes.POINTER(ctypes.c_ubyte(data))) + wb.wb_supervisor_field_insert_mf_vec3f(self._ref, index, (ctypes.c_double * 3)(*value)) def insertMFRotation(self, index, value: typing.List[float]): - data = struct.pack('dddd', *value) - wb.wb_supervisor_field_insert_mf_rotation(self._ref, index, ctypes.POINTER(ctypes.c_ubyte(data))) + wb.wb_supervisor_field_insert_mf_rotation(self._ref, index, (ctypes.c_double * 4)(*value)) def insertMFColor(self, index, value: typing.List[float]): - data = struct.pack('ddd', *value) - wb.wb_supervisor_field_insert_mf_color(self._ref, index, ctypes.POINTER(ctypes.c_ubyte(data))) + wb.wb_supervisor_field_insert_mf_color(self._ref, index, (ctypes.c_double * 3)(*value)) def insertMFString(self, index, value): wb.wb_supervisor_field_insert_mf_string(self._ref, index, str.encode(value)) @@ -229,7 +233,7 @@ def removeMF(self, index): wb.wb_supervisor_field_remove_mf(self._ref, index) def removeSF(self): - wb.wb_supervisor_field_remove_mf(self._ref) + wb.wb_supervisor_field_remove_sf(self._ref) def importMFNodeFromString(self, position: int, nodeString: str): wb.wb_supervisor_field_import_mf_node_from_string(self._ref, position, str.encode(nodeString)) @@ -299,3 +303,5 @@ def value(self, value: typing.Union[bool, int, float, str, typing.List[float]]): wb.wb_supervisor_field_set_sf_rotation(self._ref, (ctypes.c_double * 4)(*value)) elif self.type == Field.SF_COLOR and isinstance(value, list) and len(value) == 3: wb.wb_supervisor_field_set_sf_color(self._ref, (ctypes.c_double * 3)(*value)) + else: + print("Error: new field value has wrong type or length.", file=sys.stderr) diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/gps.py b/webots_ros2_driver/webots/lib/controller/python/controller/gps.py index 0b8901820..7941e49a1 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/gps.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/gps.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.sensor import Sensor -from controller.wb import wb +from .sensor import Sensor +from .wb import wb import ctypes import typing diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/gyro.py b/webots_ros2_driver/webots/lib/controller/python/controller/gyro.py index 2735090ed..ac7933d25 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/gyro.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/gyro.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.sensor import Sensor -from controller.wb import wb +from .sensor import Sensor +from .wb import wb import ctypes import typing diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/inertial_unit.py b/webots_ros2_driver/webots/lib/controller/python/controller/inertial_unit.py index 872bccf7e..208f44ca7 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/inertial_unit.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/inertial_unit.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.sensor import Sensor -from controller.wb import wb +from .sensor import Sensor +from .wb import wb import ctypes import typing diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/joystick.py b/webots_ros2_driver/webots/lib/controller/python/controller/joystick.py index 851ce13bc..d77f681b0 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/joystick.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/joystick.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb +from .wb import wb import ctypes from typing import Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/keyboard.py b/webots_ros2_driver/webots/lib/controller/python/controller/keyboard.py index d607afd3f..549ef0e3f 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/keyboard.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/keyboard.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb -from controller.constants import constant +from .wb import wb +from .constants import constant from typing import Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/led.py b/webots_ros2_driver/webots/lib/controller/python/controller/led.py index 7380fe5d3..26c5043ad 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/led.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/led.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb -from controller.device import Device +from .wb import wb +from .device import Device from typing import Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/lidar.py b/webots_ros2_driver/webots/lib/controller/python/controller/lidar.py index 76f39f2ae..4c6e3d74c 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/lidar.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/lidar.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ # limitations under the License. import ctypes -from controller.sensor import Sensor -from controller.lidar_point import LidarPoint -from controller.wb import wb +from .sensor import Sensor +from .lidar_point import LidarPoint +from .wb import wb from typing import List, Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/lidar_point.py b/webots_ros2_driver/webots/lib/controller/python/controller/lidar_point.py index d922d4b30..8f06b2211 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/lidar_point.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/lidar_point.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/light_sensor.py b/webots_ros2_driver/webots/lib/controller/python/controller/light_sensor.py index f1fb7e413..0a4945488 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/light_sensor.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/light_sensor.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,8 +13,8 @@ # limitations under the License. import ctypes -from controller.wb import wb -from controller.sensor import Sensor +from .wb import wb +from .sensor import Sensor from typing import Union, List diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/motion.py b/webots_ros2_driver/webots/lib/controller/python/controller/motion.py index 3824c5591..76d49fbda 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/motion.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/motion.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ # limitations under the License. import ctypes -from controller.wb import wb +from .wb import wb class Motion: diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/motor.py b/webots_ros2_driver/webots/lib/controller/python/controller/motor.py index f5b0b19ae..06b4717a0 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/motor.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/motor.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ # limitations under the License. import ctypes -from controller.constants import constant -from controller.device import Device -from controller.wb import wb +from .constants import constant +from .device import Device +from .wb import wb from typing import Union @@ -132,13 +132,13 @@ def getPositionSensor(self): @property def brake(self): - from controller.brake import Brake + from .brake import Brake tag = wb.wb_motor_get_brake(self._tag) return None if tag == 0 else Brake(tag) @property def position_sensor(self): - from controller.position_sensor import PositionSensor + from .position_sensor import PositionSensor tag = wb.wb_motor_get_position_sensor(self._tag) return None if tag == 0 else PositionSensor(tag) diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/mouse.py b/webots_ros2_driver/webots/lib/controller/python/controller/mouse.py index c9e92ddd4..1665e1552 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/mouse.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/mouse.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb +from .wb import wb import ctypes import struct from typing import Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/node.py b/webots_ros2_driver/webots/lib/controller/python/controller/node.py index a6f416ef1..e57f8e543 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/node.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/node.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ # limitations under the License. import ctypes -from controller.wb import wb -from controller.constants import constant -from controller import Field +from .wb import wb +from .constants import constant +from .field import Field import struct import typing @@ -84,13 +84,15 @@ def getId(self) -> int: return self.id def getParentNode(self) -> Node: - return Node(ref=wb.wb_supervisor_node_get_parent_node(self._ref)) + node = wb.wb_supervisor_node_get_parent_node(self._ref) + return Node(ref=node) if node else None def isProto(self) -> bool: return wb.wb_supervisor_node_is_proto(self._ref) != 0 def getFromProtoDef(self, DEF: str) -> Node: - return Node(wb.wb_supervisor_node_get_from_proto_def(self._ref, str.encode(DEF))) + node = wb.wb_supervisor_node_get_from_proto_def(self._ref, str.encode(DEF)) + return Node(ref=node) if node else None def getType(self) -> int: return self.type @@ -130,15 +132,18 @@ def getOrientation(self) -> typing.List[float]: o = wb.wb_supervisor_node_get_orientation(self._ref) return [o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], o[8]] - def getPose(self, fromNode: Node) -> typing.List[float]: - p = wb.wb_supervisor_node_get_pose(self._ref, fromNode._ref) + def getPose(self, fromNode: Node = None) -> typing.List[float]: + fromNodeRef = fromNode._ref if fromNode else None + p = wb.wb_supervisor_node_get_pose(self._ref, fromNodeRef) return [p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]] - def enablePoseTracking(self, samplingPeriod: int, fromNode: Node): - wb.wb_supervisor_node_enable_pose_tracking(samplingPeriod, self._ref, fromNode._ref) + def enablePoseTracking(self, samplingPeriod: int, fromNode: Node = None): + fromNodeRef = fromNode._ref if fromNode else None + wb.wb_supervisor_node_enable_pose_tracking(self._ref, samplingPeriod, fromNodeRef) - def disablePoseTracking(self, fromNode: Node): - wb.wb_supervisor_node_enable_pose_tracking(self._ref, fromNode._ref) + def disablePoseTracking(self, fromNode: Node = None): + fromNodeRef = fromNode._ref if fromNode else None + wb.wb_supervisor_node_disable_pose_tracking(self._ref, fromNodeRef) def getCenterOfMass(self) -> typing.List[float]: c = wb.wb_supervisor_node_get_center_of_mass(self._ref) @@ -316,11 +321,13 @@ def number_of_fields(self) -> int: def getSFNode(self) -> Node: - return Node(ref=wb.wb_supervisor_field_get_sf_node(self._ref)) + node = wb.wb_supervisor_field_get_sf_node(self._ref) + return Node(ref=node) if node else None def getMFNode(self, index: int) -> Node: - return Node(ref=wb.wb_supervisor_field_get_mf_node(self._ref, index)) + node = wb.wb_supervisor_field_get_mf_node(self._ref, index) + return Node(ref=node) if node else None Field.getSFNode = getSFNode diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/pen.py b/webots_ros2_driver/webots/lib/controller/python/controller/pen.py index 2ecd2bbe4..3a6693004 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/pen.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/pen.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb -from controller.device import Device +from .wb import wb +from .device import Device import ctypes from typing import Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/position_sensor.py b/webots_ros2_driver/webots/lib/controller/python/controller/position_sensor.py index 8fd133d8e..6454da866 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/position_sensor.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/position_sensor.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ # limitations under the License. import ctypes -from controller.constants import constant -from controller.wb import wb -from controller.sensor import Sensor +from .constants import constant +from .wb import wb +from .sensor import Sensor from typing import Union @@ -44,13 +44,13 @@ def getType(self) -> int: @property def brake(self): - from controller.brake import Brake + from .brake import Brake tag = wb.wb_position_sensor_get_brake(self._tag) return None if tag == 0 else Brake(tag) @property def motor(self): - from controller.motor import Motor + from .motor import Motor tag = wb.wb_brake_get_motor(self._tag) return None if tag == 0 else Motor(tag) diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/radar.py b/webots_ros2_driver/webots/lib/controller/python/controller/radar.py index df64a45de..ab4f637a8 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/radar.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/radar.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ # limitations under the License. import ctypes -from controller.sensor import Sensor -from controller.radar_target import RadarTarget -from controller.wb import wb +from .sensor import Sensor +from .radar_target import RadarTarget +from .wb import wb from typing import List, Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/radar_target.py b/webots_ros2_driver/webots/lib/controller/python/controller/radar_target.py index d19bbd6d1..780a1faba 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/radar_target.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/radar_target.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/range_finder.py b/webots_ros2_driver/webots/lib/controller/python/controller/range_finder.py index f6648c65f..93bbca030 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/range_finder.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/range_finder.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,8 +13,8 @@ # limitations under the License. import ctypes -from controller.sensor import Sensor -from controller.wb import wb +from .sensor import Sensor +from .wb import wb from typing import List, Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/receiver.py b/webots_ros2_driver/webots/lib/controller/python/controller/receiver.py index 8e68f42af..f5f95faf8 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/receiver.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/receiver.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,8 +15,8 @@ import ctypes import struct import sys -from controller.wb import wb -from controller.sensor import Sensor +from .wb import wb +from .sensor import Sensor from typing import Union, Tuple, List diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/robot.py b/webots_ros2_driver/webots/lib/controller/python/controller/robot.py index 83968e910..5786d2e3f 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/robot.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/robot.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,37 +15,37 @@ import ctypes import sys import typing -from controller.wb import wb -from controller.node import Node -from controller.device import Device -from controller.accelerometer import Accelerometer -from controller.altimeter import Altimeter -from controller.brake import Brake -from controller.camera import Camera -from controller.compass import Compass -from controller.connector import Connector -from controller.display import Display -from controller.distance_sensor import DistanceSensor -from controller.emitter import Emitter -from controller.gps import GPS -from controller.gyro import Gyro -from controller.inertial_unit import InertialUnit -from controller.led import LED -from controller.lidar import Lidar -from controller.light_sensor import LightSensor -from controller.motor import Motor -from controller.pen import Pen -from controller.position_sensor import PositionSensor -from controller.radar import Radar -from controller.range_finder import RangeFinder -from controller.receiver import Receiver -from controller.skin import Skin -from controller.speaker import Speaker -from controller.touch_sensor import TouchSensor - -from controller.joystick import Joystick -from controller.keyboard import Keyboard -from controller.mouse import Mouse +from .wb import wb +from .node import Node +from .device import Device +from .accelerometer import Accelerometer +from .altimeter import Altimeter +from .brake import Brake +from .camera import Camera +from .compass import Compass +from .connector import Connector +from .display import Display +from .distance_sensor import DistanceSensor +from .emitter import Emitter +from .gps import GPS +from .gyro import Gyro +from .inertial_unit import InertialUnit +from .led import LED +from .lidar import Lidar +from .light_sensor import LightSensor +from .motor import Motor +from .pen import Pen +from .position_sensor import PositionSensor +from .radar import Radar +from .range_finder import RangeFinder +from .receiver import Receiver +from .skin import Skin +from .speaker import Speaker +from .touch_sensor import TouchSensor + +from .joystick import Joystick +from .keyboard import Keyboard +from .mouse import Mouse class Robot: diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/sensor.py b/webots_ros2_driver/webots/lib/controller/python/controller/sensor.py index bd765b511..8ea034165 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/sensor.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/sensor.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb -from controller.device import Device +from .wb import wb +from .device import Device from typing import Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/skin.py b/webots_ros2_driver/webots/lib/controller/python/controller/skin.py index bf2326088..fefab8093 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/skin.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/skin.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.device import Device -from controller.wb import wb +from .device import Device +from .wb import wb import ctypes from typing import List, Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/speaker.py b/webots_ros2_driver/webots/lib/controller/python/controller/speaker.py index f2f75a6ed..878af2360 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/speaker.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/speaker.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb -from controller.device import Device +from .wb import wb +from .device import Device import ctypes from typing import Union diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/supervisor.py b/webots_ros2_driver/webots/lib/controller/python/controller/supervisor.py index 929ad0a53..94b3b8bea 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/supervisor.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/supervisor.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.wb import wb -from controller.node import Node -from controller.robot import Robot +from .wb import wb +from .node import Node +from .robot import Robot import ctypes @@ -66,7 +66,9 @@ def simulationResetPhysics(self): def worldLoad(self, filename: str): wb.wb_supervisor_world_load(str.encode(filename)) - def worldSave(self, filename: str) -> int: + def worldSave(self, filename: str = None) -> int: + if not filename: + return wb.wb_supervisor_world_save(None) return wb.wb_supervisor_world_save(str.encode(filename)) def worldReload(self): diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/touch_sensor.py b/webots_ros2_driver/webots/lib/controller/python/controller/touch_sensor.py index b0bedb747..64fb4ed41 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/touch_sensor.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/touch_sensor.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from controller.sensor import Sensor -from controller.wb import wb +from .sensor import Sensor +from .wb import wb import ctypes import typing diff --git a/webots_ros2_driver/webots/lib/controller/python/controller/wb.py b/webots_ros2_driver/webots/lib/controller/python/controller/wb.py index 12845e647..b9b7ba1db 100644 --- a/webots_ros2_driver/webots/lib/controller/python/controller/wb.py +++ b/webots_ros2_driver/webots/lib/controller/python/controller/wb.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,6 +21,9 @@ elif sys.platform == 'win32': path = os.path.join('lib', 'controller', 'Controller.dll') elif sys.platform == 'darwin': - path = os.path.join('Contents', 'MacOS', 'lib', 'controller', 'libController.dylib') + path = os.path.join('Contents', 'lib', 'controller', 'libController.dylib') wb = ctypes.cdll.LoadLibrary(os.path.join(os.environ['WEBOTS_HOME'], path)) + +if sys.platform == 'win32': + ctypes.cdll.LoadLibrary(os.path.join(os.environ['WEBOTS_HOME'], 'lib', 'controller', 'generic_robot_window.dll')) diff --git a/webots_ros2_driver/webots/lib/controller/python/vehicle/__init__.py b/webots_ros2_driver/webots/lib/controller/python/vehicle/__init__.py index 7e4e6432f..b8dc83955 100644 --- a/webots_ros2_driver/webots/lib/controller/python/vehicle/__init__.py +++ b/webots_ros2_driver/webots/lib/controller/python/vehicle/__init__.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/lib/controller/python/vehicle/car.py b/webots_ros2_driver/webots/lib/controller/python/vehicle/car.py index 05111dd00..a0ecd3412 100644 --- a/webots_ros2_driver/webots/lib/controller/python/vehicle/car.py +++ b/webots_ros2_driver/webots/lib/controller/python/vehicle/car.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/lib/controller/python/vehicle/driver.py b/webots_ros2_driver/webots/lib/controller/python/vehicle/driver.py index e4214af17..bdfe32add 100644 --- a/webots_ros2_driver/webots/lib/controller/python/vehicle/driver.py +++ b/webots_ros2_driver/webots/lib/controller/python/vehicle/driver.py @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/Makefile b/webots_ros2_driver/webots/projects/default/libraries/vehicle/Makefile index 8ce942220..b8e73b197 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/Makefile +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/Makefile b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/Makefile index 963a93c27..05f663b0e 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/Makefile +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/src/car.c b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/src/car.c index 0f0e91c4e..94731ab1f 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/src/car.c +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/src/car.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/src/car_private.h b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/src/car_private.h index e9fdc5357..d160630ac 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/src/car_private.h +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/car/src/car_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/driver/Makefile b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/driver/Makefile index ec3231b8f..59a744d7e 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/driver/Makefile +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/driver/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/driver/src/driver.c b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/driver/src/driver.c index b56dc9476..395aea634 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/driver/src/driver.c +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/c/driver/src/driver.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/car/Makefile b/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/car/Makefile index 3faa227c0..a98ded8ed 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/car/Makefile +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/car/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/car/src/Car.cpp b/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/car/src/Car.cpp index 155330db9..ef7268450 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/car/src/Car.cpp +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/car/src/Car.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/driver/Makefile b/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/driver/Makefile index a9f33d257..d8d8b3235 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/driver/Makefile +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/driver/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/driver/src/Driver.cpp b/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/driver/src/Driver.cpp index e79313157..1e9a251a1 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/driver/src/Driver.cpp +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/cpp/driver/src/Driver.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/java/.gitignore b/webots_ros2_driver/webots/projects/default/libraries/vehicle/java/.gitignore deleted file mode 100644 index 748e52f50..000000000 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/java/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/vehicle.cpp -/output -/*jnilib - diff --git a/webots_ros2_driver/webots/projects/default/libraries/vehicle/java/Makefile b/webots_ros2_driver/webots/projects/default/libraries/vehicle/java/Makefile index 95072f3e9..c0b875a73 100644 --- a/webots_ros2_driver/webots/projects/default/libraries/vehicle/java/Makefile +++ b/webots_ros2_driver/webots/projects/default/libraries/vehicle/java/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/resources/Makefile.include b/webots_ros2_driver/webots/resources/Makefile.include index 1d10d985b..9e214f683 100644 --- a/webots_ros2_driver/webots/resources/Makefile.include +++ b/webots_ros2_driver/webots/resources/Makefile.include @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/resources/Makefile.os.include b/webots_ros2_driver/webots/resources/Makefile.os.include index 35d05e89c..1b15e749f 100644 --- a/webots_ros2_driver/webots/resources/Makefile.os.include +++ b/webots_ros2_driver/webots/resources/Makefile.os.include @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/resources/projects/libraries/generic_robot_window/Makefile b/webots_ros2_driver/webots/resources/projects/libraries/generic_robot_window/Makefile index 951c7c662..972da106e 100644 --- a/webots_ros2_driver/webots/resources/projects/libraries/generic_robot_window/Makefile +++ b/webots_ros2_driver/webots/resources/projects/libraries/generic_robot_window/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/resources/projects/libraries/generic_robot_window/generic.c b/webots_ros2_driver/webots/resources/projects/libraries/generic_robot_window/generic.c index 470a99a9b..5fa95a94f 100644 --- a/webots_ros2_driver/webots/resources/projects/libraries/generic_robot_window/generic.c +++ b/webots_ros2_driver/webots/resources/projects/libraries/generic_robot_window/generic.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/Makefile b/webots_ros2_driver/webots/src/controller/Makefile index 343c7b33f..ffbb767c8 100644 --- a/webots_ros2_driver/webots/src/controller/Makefile +++ b/webots_ros2_driver/webots/src/controller/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/Makefile b/webots_ros2_driver/webots/src/controller/c/Makefile index 739e82050..8000404f8 100644 --- a/webots_ros2_driver/webots/src/controller/c/Makefile +++ b/webots_ros2_driver/webots/src/controller/c/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/abstract_camera.c b/webots_ros2_driver/webots/src/controller/c/abstract_camera.c index f648218e9..096bc1a66 100644 --- a/webots_ros2_driver/webots/src/controller/c/abstract_camera.c +++ b/webots_ros2_driver/webots/src/controller/c/abstract_camera.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/abstract_camera.h b/webots_ros2_driver/webots/src/controller/c/abstract_camera.h index bf459f2c7..dc82d3d68 100644 --- a/webots_ros2_driver/webots/src/controller/c/abstract_camera.h +++ b/webots_ros2_driver/webots/src/controller/c/abstract_camera.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/accelerometer.c b/webots_ros2_driver/webots/src/controller/c/accelerometer.c index 460798921..40f4d1d37 100644 --- a/webots_ros2_driver/webots/src/controller/c/accelerometer.c +++ b/webots_ros2_driver/webots/src/controller/c/accelerometer.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/altimeter.c b/webots_ros2_driver/webots/src/controller/c/altimeter.c index 503a67478..704203b08 100644 --- a/webots_ros2_driver/webots/src/controller/c/altimeter.c +++ b/webots_ros2_driver/webots/src/controller/c/altimeter.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/ansi_codes.c b/webots_ros2_driver/webots/src/controller/c/ansi_codes.c index 7da70a823..f16d7d026 100644 --- a/webots_ros2_driver/webots/src/controller/c/ansi_codes.c +++ b/webots_ros2_driver/webots/src/controller/c/ansi_codes.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/base64.c b/webots_ros2_driver/webots/src/controller/c/base64.c index 6c3f45a40..a7f3456d7 100644 --- a/webots_ros2_driver/webots/src/controller/c/base64.c +++ b/webots_ros2_driver/webots/src/controller/c/base64.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/base64.h b/webots_ros2_driver/webots/src/controller/c/base64.h index 15164c2bc..87651c608 100644 --- a/webots_ros2_driver/webots/src/controller/c/base64.h +++ b/webots_ros2_driver/webots/src/controller/c/base64.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/brake.c b/webots_ros2_driver/webots/src/controller/c/brake.c index 1f6e06169..4860bc2a5 100644 --- a/webots_ros2_driver/webots/src/controller/c/brake.c +++ b/webots_ros2_driver/webots/src/controller/c/brake.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/camera.c b/webots_ros2_driver/webots/src/controller/c/camera.c index dd3aa3e13..4fa253057 100644 --- a/webots_ros2_driver/webots/src/controller/c/camera.c +++ b/webots_ros2_driver/webots/src/controller/c/camera.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/camera_private.h b/webots_ros2_driver/webots/src/controller/c/camera_private.h index c01f3b0e3..0504a27e0 100644 --- a/webots_ros2_driver/webots/src/controller/c/camera_private.h +++ b/webots_ros2_driver/webots/src/controller/c/camera_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/compass.c b/webots_ros2_driver/webots/src/controller/c/compass.c index ed4c3eb36..32f0e7a88 100644 --- a/webots_ros2_driver/webots/src/controller/c/compass.c +++ b/webots_ros2_driver/webots/src/controller/c/compass.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/connector.c b/webots_ros2_driver/webots/src/controller/c/connector.c index e3c919555..fc9a2aa4e 100644 --- a/webots_ros2_driver/webots/src/controller/c/connector.c +++ b/webots_ros2_driver/webots/src/controller/c/connector.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/console.c b/webots_ros2_driver/webots/src/controller/c/console.c index c29f4161e..e5db5bc3a 100644 --- a/webots_ros2_driver/webots/src/controller/c/console.c +++ b/webots_ros2_driver/webots/src/controller/c/console.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/default_robot_window.c b/webots_ros2_driver/webots/src/controller/c/default_robot_window.c index 02abbcf19..d18d7acc9 100644 --- a/webots_ros2_driver/webots/src/controller/c/default_robot_window.c +++ b/webots_ros2_driver/webots/src/controller/c/default_robot_window.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/default_robot_window_private.h b/webots_ros2_driver/webots/src/controller/c/default_robot_window_private.h index 883fac59c..452d729b3 100644 --- a/webots_ros2_driver/webots/src/controller/c/default_robot_window_private.h +++ b/webots_ros2_driver/webots/src/controller/c/default_robot_window_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/device.c b/webots_ros2_driver/webots/src/controller/c/device.c index c689d3b81..e19ddf18e 100644 --- a/webots_ros2_driver/webots/src/controller/c/device.c +++ b/webots_ros2_driver/webots/src/controller/c/device.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/device_private.h b/webots_ros2_driver/webots/src/controller/c/device_private.h index 47a3c0b0a..c1e8719b1 100644 --- a/webots_ros2_driver/webots/src/controller/c/device_private.h +++ b/webots_ros2_driver/webots/src/controller/c/device_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/display.c b/webots_ros2_driver/webots/src/controller/c/display.c index e9f58424c..6078fdebc 100644 --- a/webots_ros2_driver/webots/src/controller/c/display.c +++ b/webots_ros2_driver/webots/src/controller/c/display.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/display_private.h b/webots_ros2_driver/webots/src/controller/c/display_private.h index 4c3261526..d1cec63a4 100644 --- a/webots_ros2_driver/webots/src/controller/c/display_private.h +++ b/webots_ros2_driver/webots/src/controller/c/display_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/distance_sensor.c b/webots_ros2_driver/webots/src/controller/c/distance_sensor.c index 4577529df..291e7b262 100644 --- a/webots_ros2_driver/webots/src/controller/c/distance_sensor.c +++ b/webots_ros2_driver/webots/src/controller/c/distance_sensor.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/dynamic_library.c b/webots_ros2_driver/webots/src/controller/c/dynamic_library.c index 0b0a04584..efa5654da 100644 --- a/webots_ros2_driver/webots/src/controller/c/dynamic_library.c +++ b/webots_ros2_driver/webots/src/controller/c/dynamic_library.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/dynamic_library.h b/webots_ros2_driver/webots/src/controller/c/dynamic_library.h index 60b57e8a5..b71ce7ac8 100644 --- a/webots_ros2_driver/webots/src/controller/c/dynamic_library.h +++ b/webots_ros2_driver/webots/src/controller/c/dynamic_library.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/emitter.c b/webots_ros2_driver/webots/src/controller/c/emitter.c index 1de6521e6..b48917396 100644 --- a/webots_ros2_driver/webots/src/controller/c/emitter.c +++ b/webots_ros2_driver/webots/src/controller/c/emitter.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/file.c b/webots_ros2_driver/webots/src/controller/c/file.c index c3d3222f9..7cc06f655 100644 --- a/webots_ros2_driver/webots/src/controller/c/file.c +++ b/webots_ros2_driver/webots/src/controller/c/file.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/file.h b/webots_ros2_driver/webots/src/controller/c/file.h index f6e26f162..d09349dfa 100644 --- a/webots_ros2_driver/webots/src/controller/c/file.h +++ b/webots_ros2_driver/webots/src/controller/c/file.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/g_image.c b/webots_ros2_driver/webots/src/controller/c/g_image.c index 8fe20a905..19a43d7f6 100644 --- a/webots_ros2_driver/webots/src/controller/c/g_image.c +++ b/webots_ros2_driver/webots/src/controller/c/g_image.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/g_image.h b/webots_ros2_driver/webots/src/controller/c/g_image.h index 969980cba..e02f41866 100644 --- a/webots_ros2_driver/webots/src/controller/c/g_image.h +++ b/webots_ros2_driver/webots/src/controller/c/g_image.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/g_pipe.c b/webots_ros2_driver/webots/src/controller/c/g_pipe.c index ff00c1494..85048392b 100644 --- a/webots_ros2_driver/webots/src/controller/c/g_pipe.c +++ b/webots_ros2_driver/webots/src/controller/c/g_pipe.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/g_pipe.h b/webots_ros2_driver/webots/src/controller/c/g_pipe.h index 4d51b0d66..c4c5c100a 100644 --- a/webots_ros2_driver/webots/src/controller/c/g_pipe.h +++ b/webots_ros2_driver/webots/src/controller/c/g_pipe.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/gps.c b/webots_ros2_driver/webots/src/controller/c/gps.c index 5d8bd99e0..381ae87fc 100644 --- a/webots_ros2_driver/webots/src/controller/c/gps.c +++ b/webots_ros2_driver/webots/src/controller/c/gps.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/gyro.c b/webots_ros2_driver/webots/src/controller/c/gyro.c index 71a268b35..a235372ba 100644 --- a/webots_ros2_driver/webots/src/controller/c/gyro.c +++ b/webots_ros2_driver/webots/src/controller/c/gyro.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/html_robot_window.c b/webots_ros2_driver/webots/src/controller/c/html_robot_window.c index 5dc4d481b..e2cc28491 100644 --- a/webots_ros2_driver/webots/src/controller/c/html_robot_window.c +++ b/webots_ros2_driver/webots/src/controller/c/html_robot_window.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/html_robot_window_private.h b/webots_ros2_driver/webots/src/controller/c/html_robot_window_private.h index e6bbb4f9f..17ebfe927 100644 --- a/webots_ros2_driver/webots/src/controller/c/html_robot_window_private.h +++ b/webots_ros2_driver/webots/src/controller/c/html_robot_window_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/image.c b/webots_ros2_driver/webots/src/controller/c/image.c index 7b427bb39..f2dd6d93a 100644 --- a/webots_ros2_driver/webots/src/controller/c/image.c +++ b/webots_ros2_driver/webots/src/controller/c/image.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/image_private.h b/webots_ros2_driver/webots/src/controller/c/image_private.h index d443ca6e9..ad1869e73 100644 --- a/webots_ros2_driver/webots/src/controller/c/image_private.h +++ b/webots_ros2_driver/webots/src/controller/c/image_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/inertial_unit.c b/webots_ros2_driver/webots/src/controller/c/inertial_unit.c index 4d6e7877f..2ee37142d 100644 --- a/webots_ros2_driver/webots/src/controller/c/inertial_unit.c +++ b/webots_ros2_driver/webots/src/controller/c/inertial_unit.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/joystick.c b/webots_ros2_driver/webots/src/controller/c/joystick.c index 8ce285395..a56ed4ddc 100644 --- a/webots_ros2_driver/webots/src/controller/c/joystick.c +++ b/webots_ros2_driver/webots/src/controller/c/joystick.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/joystick_private.h b/webots_ros2_driver/webots/src/controller/c/joystick_private.h index 2816b4c27..032b9bb29 100644 --- a/webots_ros2_driver/webots/src/controller/c/joystick_private.h +++ b/webots_ros2_driver/webots/src/controller/c/joystick_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/keyboard.c b/webots_ros2_driver/webots/src/controller/c/keyboard.c index cf7b45aa0..c41dc9c6a 100644 --- a/webots_ros2_driver/webots/src/controller/c/keyboard.c +++ b/webots_ros2_driver/webots/src/controller/c/keyboard.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/keyboard_private.h b/webots_ros2_driver/webots/src/controller/c/keyboard_private.h index dce45bcd7..f0be9c1a4 100644 --- a/webots_ros2_driver/webots/src/controller/c/keyboard_private.h +++ b/webots_ros2_driver/webots/src/controller/c/keyboard_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/led.c b/webots_ros2_driver/webots/src/controller/c/led.c index 12e71d185..d1c9f5869 100644 --- a/webots_ros2_driver/webots/src/controller/c/led.c +++ b/webots_ros2_driver/webots/src/controller/c/led.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/lidar.c b/webots_ros2_driver/webots/src/controller/c/lidar.c index fe5911e21..13d39708e 100644 --- a/webots_ros2_driver/webots/src/controller/c/lidar.c +++ b/webots_ros2_driver/webots/src/controller/c/lidar.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/light_sensor.c b/webots_ros2_driver/webots/src/controller/c/light_sensor.c index aa6c7e5fb..81838af5d 100644 --- a/webots_ros2_driver/webots/src/controller/c/light_sensor.c +++ b/webots_ros2_driver/webots/src/controller/c/light_sensor.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/messages.h b/webots_ros2_driver/webots/src/controller/c/messages.h index c4f2fa9d5..1a3697b06 100644 --- a/webots_ros2_driver/webots/src/controller/c/messages.h +++ b/webots_ros2_driver/webots/src/controller/c/messages.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/microphone.c b/webots_ros2_driver/webots/src/controller/c/microphone.c index f3e0e3d93..213044245 100644 --- a/webots_ros2_driver/webots/src/controller/c/microphone.c +++ b/webots_ros2_driver/webots/src/controller/c/microphone.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/motion.c b/webots_ros2_driver/webots/src/controller/c/motion.c index 195140af4..56c6ca9ad 100644 --- a/webots_ros2_driver/webots/src/controller/c/motion.c +++ b/webots_ros2_driver/webots/src/controller/c/motion.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/motion_private.h b/webots_ros2_driver/webots/src/controller/c/motion_private.h index a9f4f1e45..1877acbd8 100644 --- a/webots_ros2_driver/webots/src/controller/c/motion_private.h +++ b/webots_ros2_driver/webots/src/controller/c/motion_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/motor.c b/webots_ros2_driver/webots/src/controller/c/motor.c index d67ee8729..dd77bc653 100644 --- a/webots_ros2_driver/webots/src/controller/c/motor.c +++ b/webots_ros2_driver/webots/src/controller/c/motor.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/mouse.c b/webots_ros2_driver/webots/src/controller/c/mouse.c index 0b863226b..a8cb19de6 100644 --- a/webots_ros2_driver/webots/src/controller/c/mouse.c +++ b/webots_ros2_driver/webots/src/controller/c/mouse.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/mouse_private.h b/webots_ros2_driver/webots/src/controller/c/mouse_private.h index 9ff4dd63b..3fca8621b 100644 --- a/webots_ros2_driver/webots/src/controller/c/mouse_private.h +++ b/webots_ros2_driver/webots/src/controller/c/mouse_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/node.c b/webots_ros2_driver/webots/src/controller/c/node.c index b9e41e08c..91e6dd2ba 100644 --- a/webots_ros2_driver/webots/src/controller/c/node.c +++ b/webots_ros2_driver/webots/src/controller/c/node.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/pen.c b/webots_ros2_driver/webots/src/controller/c/pen.c index a9a968cc8..859ed0d1a 100644 --- a/webots_ros2_driver/webots/src/controller/c/pen.c +++ b/webots_ros2_driver/webots/src/controller/c/pen.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/percent.c b/webots_ros2_driver/webots/src/controller/c/percent.c index 062b05829..959d3110a 100644 --- a/webots_ros2_driver/webots/src/controller/c/percent.c +++ b/webots_ros2_driver/webots/src/controller/c/percent.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/percent.h b/webots_ros2_driver/webots/src/controller/c/percent.h index 52413edb0..61c44dfb3 100644 --- a/webots_ros2_driver/webots/src/controller/c/percent.h +++ b/webots_ros2_driver/webots/src/controller/c/percent.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/position_sensor.c b/webots_ros2_driver/webots/src/controller/c/position_sensor.c index 6389836f2..ed242b607 100644 --- a/webots_ros2_driver/webots/src/controller/c/position_sensor.c +++ b/webots_ros2_driver/webots/src/controller/c/position_sensor.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/radar.c b/webots_ros2_driver/webots/src/controller/c/radar.c index 4e3aad6ca..71fe23ab8 100644 --- a/webots_ros2_driver/webots/src/controller/c/radar.c +++ b/webots_ros2_driver/webots/src/controller/c/radar.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/radio.c b/webots_ros2_driver/webots/src/controller/c/radio.c index dcd30ddea..7eec7e041 100644 --- a/webots_ros2_driver/webots/src/controller/c/radio.c +++ b/webots_ros2_driver/webots/src/controller/c/radio.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/range_finder.c b/webots_ros2_driver/webots/src/controller/c/range_finder.c index bb5b4eb3b..6995ec3b4 100644 --- a/webots_ros2_driver/webots/src/controller/c/range_finder.c +++ b/webots_ros2_driver/webots/src/controller/c/range_finder.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/receiver.c b/webots_ros2_driver/webots/src/controller/c/receiver.c index 4431fcba7..c6a0a9093 100644 --- a/webots_ros2_driver/webots/src/controller/c/receiver.c +++ b/webots_ros2_driver/webots/src/controller/c/receiver.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/remote_control.c b/webots_ros2_driver/webots/src/controller/c/remote_control.c index dbc7c4658..acbb4d573 100644 --- a/webots_ros2_driver/webots/src/controller/c/remote_control.c +++ b/webots_ros2_driver/webots/src/controller/c/remote_control.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/remote_control_private.h b/webots_ros2_driver/webots/src/controller/c/remote_control_private.h index 788db0e85..f32831c1c 100644 --- a/webots_ros2_driver/webots/src/controller/c/remote_control_private.h +++ b/webots_ros2_driver/webots/src/controller/c/remote_control_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/request.c b/webots_ros2_driver/webots/src/controller/c/request.c index b9c94ab02..f6916e44d 100644 --- a/webots_ros2_driver/webots/src/controller/c/request.c +++ b/webots_ros2_driver/webots/src/controller/c/request.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/request.h b/webots_ros2_driver/webots/src/controller/c/request.h index 3b9add30e..436f53ee5 100644 --- a/webots_ros2_driver/webots/src/controller/c/request.h +++ b/webots_ros2_driver/webots/src/controller/c/request.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/robot.c b/webots_ros2_driver/webots/src/controller/c/robot.c index 15620eb20..bbf1907a7 100644 --- a/webots_ros2_driver/webots/src/controller/c/robot.c +++ b/webots_ros2_driver/webots/src/controller/c/robot.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/robot_private.h b/webots_ros2_driver/webots/src/controller/c/robot_private.h index 82c79ee4e..95fc842d6 100644 --- a/webots_ros2_driver/webots/src/controller/c/robot_private.h +++ b/webots_ros2_driver/webots/src/controller/c/robot_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/robot_window.c b/webots_ros2_driver/webots/src/controller/c/robot_window.c index 3236e6636..c09459520 100644 --- a/webots_ros2_driver/webots/src/controller/c/robot_window.c +++ b/webots_ros2_driver/webots/src/controller/c/robot_window.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/robot_window_private.h b/webots_ros2_driver/webots/src/controller/c/robot_window_private.h index 4cdf72b25..44eafebfc 100644 --- a/webots_ros2_driver/webots/src/controller/c/robot_window_private.h +++ b/webots_ros2_driver/webots/src/controller/c/robot_window_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/scheduler.c b/webots_ros2_driver/webots/src/controller/c/scheduler.c index 40f6af769..81eab4416 100644 --- a/webots_ros2_driver/webots/src/controller/c/scheduler.c +++ b/webots_ros2_driver/webots/src/controller/c/scheduler.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,6 +75,9 @@ int scheduler_init_remote(const char *host, int port, const char *robot_name) { robot_name == NULL ? "Exactly one robot should be set with an controller in the Webots simulation" : "The specified robot is not in the list of robots with controllers"); return false; + } else if (strncmp(acknowledge_message, "PROCESSING", 10) == 0) { + fprintf(stderr, "%s", "The Webots simulation world is not ready yet"); + return false; } else if (strncmp(acknowledge_message, "FORBIDDEN", 9) == 0) { fprintf( stderr, "%s", diff --git a/webots_ros2_driver/webots/src/controller/c/scheduler.h b/webots_ros2_driver/webots/src/controller/c/scheduler.h index 52072786a..5e2c24175 100644 --- a/webots_ros2_driver/webots/src/controller/c/scheduler.h +++ b/webots_ros2_driver/webots/src/controller/c/scheduler.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/skin.c b/webots_ros2_driver/webots/src/controller/c/skin.c index d8a9f5df3..eb5b756ed 100644 --- a/webots_ros2_driver/webots/src/controller/c/skin.c +++ b/webots_ros2_driver/webots/src/controller/c/skin.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/speaker.c b/webots_ros2_driver/webots/src/controller/c/speaker.c index 880c81482..eb5f37334 100644 --- a/webots_ros2_driver/webots/src/controller/c/speaker.c +++ b/webots_ros2_driver/webots/src/controller/c/speaker.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/string.c b/webots_ros2_driver/webots/src/controller/c/string.c index 36a5fff85..5ac4a56d9 100644 --- a/webots_ros2_driver/webots/src/controller/c/string.c +++ b/webots_ros2_driver/webots/src/controller/c/string.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/supervisor.c b/webots_ros2_driver/webots/src/controller/c/supervisor.c index f73670640..fe8deea8a 100644 --- a/webots_ros2_driver/webots/src/controller/c/supervisor.c +++ b/webots_ros2_driver/webots/src/controller/c/supervisor.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -3554,7 +3554,7 @@ void wb_supervisor_field_remove_mf_node(WbFieldRef field, int position) { } void wb_supervisor_field_remove_sf(WbFieldRef field) { - if (field->count == 0 || field->data.sf_node_uid == 0) { + if (field->count == 0) { fprintf(stderr, "Error: %s() called for an empty field.\n", __FUNCTION__); return; } @@ -3564,6 +3564,7 @@ void wb_supervisor_field_remove_sf(WbFieldRef field) { field_operation(field, REMOVE, -1, __FUNCTION__); field->count = 0; + field->data.sf_node_uid = 0; } void wb_supervisor_field_import_sf_node_from_string(WbFieldRef field, const char *node_string) { diff --git a/webots_ros2_driver/webots/src/controller/c/supervisor_private.h b/webots_ros2_driver/webots/src/controller/c/supervisor_private.h index f1c83d608..18f99a724 100644 --- a/webots_ros2_driver/webots/src/controller/c/supervisor_private.h +++ b/webots_ros2_driver/webots/src/controller/c/supervisor_private.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/system.c b/webots_ros2_driver/webots/src/controller/c/system.c index a350a4fd7..4a2e7b568 100644 --- a/webots_ros2_driver/webots/src/controller/c/system.c +++ b/webots_ros2_driver/webots/src/controller/c/system.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/tcp_client.c b/webots_ros2_driver/webots/src/controller/c/tcp_client.c index 8b16c500c..a1ee5b664 100644 --- a/webots_ros2_driver/webots/src/controller/c/tcp_client.c +++ b/webots_ros2_driver/webots/src/controller/c/tcp_client.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/tcp_client.h b/webots_ros2_driver/webots/src/controller/c/tcp_client.h index da07a7ad0..708073f6a 100644 --- a/webots_ros2_driver/webots/src/controller/c/tcp_client.h +++ b/webots_ros2_driver/webots/src/controller/c/tcp_client.h @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/c/touch_sensor.c b/webots_ros2_driver/webots/src/controller/c/touch_sensor.c index 4638f42a7..1fee78d06 100644 --- a/webots_ros2_driver/webots/src/controller/c/touch_sensor.c +++ b/webots_ros2_driver/webots/src/controller/c/touch_sensor.c @@ -1,5 +1,5 @@ /* - * Copyright 1996-2022 Cyberbotics Ltd. + * Copyright 1996-2023 Cyberbotics Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Accelerometer.cpp b/webots_ros2_driver/webots/src/controller/cpp/Accelerometer.cpp index 239444d02..332d15c48 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Accelerometer.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Accelerometer.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Altimeter.cpp b/webots_ros2_driver/webots/src/controller/cpp/Altimeter.cpp index 061a63bda..ea11274d0 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Altimeter.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Altimeter.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Brake.cpp b/webots_ros2_driver/webots/src/controller/cpp/Brake.cpp index 385aaa8f3..4780b2ba4 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Brake.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Brake.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Camera.cpp b/webots_ros2_driver/webots/src/controller/cpp/Camera.cpp index a93d797ef..7cb411b28 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Camera.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Camera.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Compass.cpp b/webots_ros2_driver/webots/src/controller/cpp/Compass.cpp index b24478bef..74104bb5a 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Compass.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Compass.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Connector.cpp b/webots_ros2_driver/webots/src/controller/cpp/Connector.cpp index 1417f7d20..1f1b0fc0a 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Connector.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Connector.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Device.cpp b/webots_ros2_driver/webots/src/controller/cpp/Device.cpp index 038001a32..ddfc45d53 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Device.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Device.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Display.cpp b/webots_ros2_driver/webots/src/controller/cpp/Display.cpp index c9077340d..6ada633d7 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Display.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Display.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/DistanceSensor.cpp b/webots_ros2_driver/webots/src/controller/cpp/DistanceSensor.cpp index 974b97ca0..3051516ae 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/DistanceSensor.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/DistanceSensor.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Emitter.cpp b/webots_ros2_driver/webots/src/controller/cpp/Emitter.cpp index 19d190b47..b1181f646 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Emitter.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Emitter.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Field.cpp b/webots_ros2_driver/webots/src/controller/cpp/Field.cpp index 1610f7466..ae7b676fc 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Field.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Field.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/GPS.cpp b/webots_ros2_driver/webots/src/controller/cpp/GPS.cpp index aa2c28ba2..8ad385395 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/GPS.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/GPS.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Gyro.cpp b/webots_ros2_driver/webots/src/controller/cpp/Gyro.cpp index d90ad867b..251e3384a 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Gyro.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Gyro.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/InertialUnit.cpp b/webots_ros2_driver/webots/src/controller/cpp/InertialUnit.cpp index 5d1e5594f..1e94c7518 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/InertialUnit.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/InertialUnit.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Joystick.cpp b/webots_ros2_driver/webots/src/controller/cpp/Joystick.cpp index fd7cdcf1c..f6c958710 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Joystick.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Joystick.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Keyboard.cpp b/webots_ros2_driver/webots/src/controller/cpp/Keyboard.cpp index 8679e0414..5f0881ec0 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Keyboard.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Keyboard.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/LED.cpp b/webots_ros2_driver/webots/src/controller/cpp/LED.cpp index 46d882402..10b88c907 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/LED.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/LED.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Lidar.cpp b/webots_ros2_driver/webots/src/controller/cpp/Lidar.cpp index 6e35eb2af..f586c6634 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Lidar.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Lidar.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/LightSensor.cpp b/webots_ros2_driver/webots/src/controller/cpp/LightSensor.cpp index 559a0456b..9d592efa4 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/LightSensor.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/LightSensor.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Makefile b/webots_ros2_driver/webots/src/controller/cpp/Makefile index 48597a5f5..2f58fe7ec 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Makefile +++ b/webots_ros2_driver/webots/src/controller/cpp/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Motion.cpp b/webots_ros2_driver/webots/src/controller/cpp/Motion.cpp index 4784a07ee..28ddce8ca 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Motion.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Motion.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Motor.cpp b/webots_ros2_driver/webots/src/controller/cpp/Motor.cpp index 583139b73..5b74cdcf4 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Motor.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Motor.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Mouse.cpp b/webots_ros2_driver/webots/src/controller/cpp/Mouse.cpp index cf62926d4..e14e79ead 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Mouse.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Mouse.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Node.cpp b/webots_ros2_driver/webots/src/controller/cpp/Node.cpp index 7d9899ae0..80b760860 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Node.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Node.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Pen.cpp b/webots_ros2_driver/webots/src/controller/cpp/Pen.cpp index ecef10fbb..827304afc 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Pen.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Pen.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/PositionSensor.cpp b/webots_ros2_driver/webots/src/controller/cpp/PositionSensor.cpp index 5019396e6..20b89ae2b 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/PositionSensor.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/PositionSensor.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Radar.cpp b/webots_ros2_driver/webots/src/controller/cpp/Radar.cpp index 6fd5c3b30..2a9d924fc 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Radar.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Radar.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/RangeFinder.cpp b/webots_ros2_driver/webots/src/controller/cpp/RangeFinder.cpp index df8745ccd..ce4b1474b 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/RangeFinder.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/RangeFinder.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Receiver.cpp b/webots_ros2_driver/webots/src/controller/cpp/Receiver.cpp index 025155407..7ffaf926a 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Receiver.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Receiver.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Robot.cpp b/webots_ros2_driver/webots/src/controller/cpp/Robot.cpp index 237379d86..4d403e635 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Robot.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Robot.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Skin.cpp b/webots_ros2_driver/webots/src/controller/cpp/Skin.cpp index 12d99662b..39d8ea706 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Skin.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Skin.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Speaker.cpp b/webots_ros2_driver/webots/src/controller/cpp/Speaker.cpp index 59b254753..ce09eac3a 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Speaker.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Speaker.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/Supervisor.cpp b/webots_ros2_driver/webots/src/controller/cpp/Supervisor.cpp index e6ad996ea..5be2361f8 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/Supervisor.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/Supervisor.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/cpp/TouchSensor.cpp b/webots_ros2_driver/webots/src/controller/cpp/TouchSensor.cpp index 9745c6697..d62a22e2d 100644 --- a/webots_ros2_driver/webots/src/controller/cpp/TouchSensor.cpp +++ b/webots_ros2_driver/webots/src/controller/cpp/TouchSensor.cpp @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/java/Makefile b/webots_ros2_driver/webots/src/controller/java/Makefile index d35b60487..bf6fd3698 100644 --- a/webots_ros2_driver/webots/src/controller/java/Makefile +++ b/webots_ros2_driver/webots/src/controller/java/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/java/controller.i b/webots_ros2_driver/webots/src/controller/java/controller.i index e0c343353..76351aa6b 100644 --- a/webots_ros2_driver/webots/src/controller/java/controller.i +++ b/webots_ros2_driver/webots/src/controller/java/controller.i @@ -1,4 +1,4 @@ -// Copyright 1996-2022 Cyberbotics Ltd. +// Copyright 1996-2023 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/matlab/Makefile b/webots_ros2_driver/webots/src/controller/matlab/Makefile index ffc374d6a..0ab83e15f 100644 --- a/webots_ros2_driver/webots/src/controller/matlab/Makefile +++ b/webots_ros2_driver/webots/src/controller/matlab/Makefile @@ -1,4 +1,4 @@ -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/controller/matlab/mgenerate.py b/webots_ros2_driver/webots/src/controller/matlab/mgenerate.py index 7b54a31c1..c7f10e3da 100755 --- a/webots_ros2_driver/webots/src/controller/matlab/mgenerate.py +++ b/webots_ros2_driver/webots/src/controller/matlab/mgenerate.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 1996-2022 Cyberbotics Ltd. +# Copyright 1996-2023 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/webots_ros2_driver/webots/src/stb/.travis.yml b/webots_ros2_driver/webots/src/stb/.travis.yml deleted file mode 100644 index 3b718023b..000000000 --- a/webots_ros2_driver/webots/src/stb/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: C -install: true -script: - - cd tests - - make all