├── .github └── workflows │ ├── humble-build-ci.yaml │ ├── jazzy-build-ci.yaml │ └── rolling-build-ci.yaml ├── .gitignore ├── README.md ├── joy ├── CHANGELOG.rst ├── CMakeLists.txt ├── LICENSE ├── README.md ├── config │ └── joy-params.yaml ├── include │ └── joy │ │ ├── game_controller.hpp │ │ └── joy.hpp ├── launch │ ├── joy-composed-launch.py │ └── joy-launch.py ├── package.xml ├── src │ ├── game_controller.cpp │ ├── joy.cpp │ └── joy_enumerate_devices.cpp └── udev │ ├── 99-logitech-f710.rules │ ├── 99-xbox-wireless-controller.rules │ └── README.md ├── joy_linux ├── CHANGELOG.rst ├── CMakeLists.txt ├── LICENSE ├── README.md ├── package.xml └── src │ └── joy_linux_node.cpp ├── joystick_drivers ├── AMENT_IGNORE ├── CHANGELOG.rst ├── CMakeLists.txt ├── LICENSE └── package.xml ├── ps3joy ├── AMENT_IGNORE ├── CHANGELOG.rst ├── CMakeLists.txt ├── LICENSE ├── README.md ├── diagnostics.yaml ├── doc │ ├── bluetooth_devices.md │ ├── testing.md │ └── troubleshooting.md ├── launch │ └── ps3.launch ├── package.xml ├── scripts │ ├── ps3joy.py │ ├── ps3joy_node.py │ └── ps3joysim.py └── src │ └── sixpair.c ├── sdl2_vendor ├── CHANGELOG.rst ├── CMakeLists.txt ├── LICENSE ├── README.md ├── cmake │ └── Modules │ │ └── Findsdl2_custom.cmake ├── package.xml ├── sdl2-windows-add-vcruntime.patch └── sdl2_vendor-extras.cmake ├── spacenav ├── CHANGELOG.rst ├── CMakeLists.txt ├── LICENSE ├── README.md ├── cmake │ └── FindSPNAV.cmake ├── include │ └── spacenav │ │ └── spacenav.hpp ├── launch │ ├── classic-launch.py │ ├── no_deadband-launch.py │ └── static_deadband-launch.py ├── package.xml └── src │ └── spacenav.cpp ├── wiimote ├── CHANGELOG.rst ├── CMakeLists.txt ├── LICENSE ├── README.md ├── config │ ├── teleop_wiimote_params.yaml │ └── wiimote_params.yaml ├── doc │ ├── testing.md │ └── tutorials │ │ └── teleop.md ├── include │ └── wiimote │ │ ├── stat_vector_3d.hpp │ │ ├── teleop_wiimote.hpp │ │ └── wiimote_controller.hpp ├── launch │ ├── feedback_test.launch.py │ ├── turtlesim.launch.py │ └── wiimote_lifecycle.launch.py ├── nodes │ └── feedback_tester.py ├── package.xml ├── src │ ├── gpl-2.0.txt │ ├── stat_vector_3d.cpp │ ├── teleop_wiimote.cpp │ └── wiimote_controller.cpp └── wiimote-extras.cmake └── wiimote_msgs ├── CHANGELOG.rst ├── CMakeLists.txt ├── msg ├── IrSourceInfo.msg ├── State.msg └── TimedSwitch.msg └── package.xml /.github/workflows/humble-build-ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/.github/workflows/humble-build-ci.yaml -------------------------------------------------------------------------------- /.github/workflows/jazzy-build-ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/.github/workflows/jazzy-build-ci.yaml -------------------------------------------------------------------------------- /.github/workflows/rolling-build-ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/.github/workflows/rolling-build-ci.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.swp 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/README.md -------------------------------------------------------------------------------- /joy/CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/CHANGELOG.rst -------------------------------------------------------------------------------- /joy/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/CMakeLists.txt -------------------------------------------------------------------------------- /joy/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/LICENSE -------------------------------------------------------------------------------- /joy/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/README.md -------------------------------------------------------------------------------- /joy/config/joy-params.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/config/joy-params.yaml -------------------------------------------------------------------------------- /joy/include/joy/game_controller.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/include/joy/game_controller.hpp -------------------------------------------------------------------------------- /joy/include/joy/joy.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/include/joy/joy.hpp -------------------------------------------------------------------------------- /joy/launch/joy-composed-launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/launch/joy-composed-launch.py -------------------------------------------------------------------------------- /joy/launch/joy-launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/launch/joy-launch.py -------------------------------------------------------------------------------- /joy/package.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/package.xml -------------------------------------------------------------------------------- /joy/src/game_controller.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/src/game_controller.cpp -------------------------------------------------------------------------------- /joy/src/joy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/src/joy.cpp -------------------------------------------------------------------------------- /joy/src/joy_enumerate_devices.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/src/joy_enumerate_devices.cpp -------------------------------------------------------------------------------- /joy/udev/99-logitech-f710.rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/udev/99-logitech-f710.rules -------------------------------------------------------------------------------- /joy/udev/99-xbox-wireless-controller.rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/udev/99-xbox-wireless-controller.rules -------------------------------------------------------------------------------- /joy/udev/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy/udev/README.md -------------------------------------------------------------------------------- /joy_linux/CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy_linux/CHANGELOG.rst -------------------------------------------------------------------------------- /joy_linux/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy_linux/CMakeLists.txt -------------------------------------------------------------------------------- /joy_linux/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy_linux/LICENSE -------------------------------------------------------------------------------- /joy_linux/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy_linux/README.md -------------------------------------------------------------------------------- /joy_linux/package.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy_linux/package.xml -------------------------------------------------------------------------------- /joy_linux/src/joy_linux_node.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joy_linux/src/joy_linux_node.cpp -------------------------------------------------------------------------------- /joystick_drivers/AMENT_IGNORE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /joystick_drivers/CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joystick_drivers/CHANGELOG.rst -------------------------------------------------------------------------------- /joystick_drivers/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joystick_drivers/CMakeLists.txt -------------------------------------------------------------------------------- /joystick_drivers/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joystick_drivers/LICENSE -------------------------------------------------------------------------------- /joystick_drivers/package.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/joystick_drivers/package.xml -------------------------------------------------------------------------------- /ps3joy/AMENT_IGNORE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ps3joy/CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/CHANGELOG.rst -------------------------------------------------------------------------------- /ps3joy/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/CMakeLists.txt -------------------------------------------------------------------------------- /ps3joy/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/LICENSE -------------------------------------------------------------------------------- /ps3joy/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/README.md -------------------------------------------------------------------------------- /ps3joy/diagnostics.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/diagnostics.yaml -------------------------------------------------------------------------------- /ps3joy/doc/bluetooth_devices.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/doc/bluetooth_devices.md -------------------------------------------------------------------------------- /ps3joy/doc/testing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/doc/testing.md -------------------------------------------------------------------------------- /ps3joy/doc/troubleshooting.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/doc/troubleshooting.md -------------------------------------------------------------------------------- /ps3joy/launch/ps3.launch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/launch/ps3.launch -------------------------------------------------------------------------------- /ps3joy/package.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/package.xml -------------------------------------------------------------------------------- /ps3joy/scripts/ps3joy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/scripts/ps3joy.py -------------------------------------------------------------------------------- /ps3joy/scripts/ps3joy_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/scripts/ps3joy_node.py -------------------------------------------------------------------------------- /ps3joy/scripts/ps3joysim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/scripts/ps3joysim.py -------------------------------------------------------------------------------- /ps3joy/src/sixpair.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/ps3joy/src/sixpair.c -------------------------------------------------------------------------------- /sdl2_vendor/CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/sdl2_vendor/CHANGELOG.rst -------------------------------------------------------------------------------- /sdl2_vendor/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/sdl2_vendor/CMakeLists.txt -------------------------------------------------------------------------------- /sdl2_vendor/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/sdl2_vendor/LICENSE -------------------------------------------------------------------------------- /sdl2_vendor/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/sdl2_vendor/README.md -------------------------------------------------------------------------------- /sdl2_vendor/cmake/Modules/Findsdl2_custom.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/sdl2_vendor/cmake/Modules/Findsdl2_custom.cmake -------------------------------------------------------------------------------- /sdl2_vendor/package.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/sdl2_vendor/package.xml -------------------------------------------------------------------------------- /sdl2_vendor/sdl2-windows-add-vcruntime.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/sdl2_vendor/sdl2-windows-add-vcruntime.patch -------------------------------------------------------------------------------- /sdl2_vendor/sdl2_vendor-extras.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/sdl2_vendor/sdl2_vendor-extras.cmake -------------------------------------------------------------------------------- /spacenav/CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/CHANGELOG.rst -------------------------------------------------------------------------------- /spacenav/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/CMakeLists.txt -------------------------------------------------------------------------------- /spacenav/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/LICENSE -------------------------------------------------------------------------------- /spacenav/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/README.md -------------------------------------------------------------------------------- /spacenav/cmake/FindSPNAV.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/cmake/FindSPNAV.cmake -------------------------------------------------------------------------------- /spacenav/include/spacenav/spacenav.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/include/spacenav/spacenav.hpp -------------------------------------------------------------------------------- /spacenav/launch/classic-launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/launch/classic-launch.py -------------------------------------------------------------------------------- /spacenav/launch/no_deadband-launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/launch/no_deadband-launch.py -------------------------------------------------------------------------------- /spacenav/launch/static_deadband-launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/launch/static_deadband-launch.py -------------------------------------------------------------------------------- /spacenav/package.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/package.xml -------------------------------------------------------------------------------- /spacenav/src/spacenav.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/spacenav/src/spacenav.cpp -------------------------------------------------------------------------------- /wiimote/CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/CHANGELOG.rst -------------------------------------------------------------------------------- /wiimote/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/CMakeLists.txt -------------------------------------------------------------------------------- /wiimote/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/LICENSE -------------------------------------------------------------------------------- /wiimote/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/README.md -------------------------------------------------------------------------------- /wiimote/config/teleop_wiimote_params.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/config/teleop_wiimote_params.yaml -------------------------------------------------------------------------------- /wiimote/config/wiimote_params.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/config/wiimote_params.yaml -------------------------------------------------------------------------------- /wiimote/doc/testing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/doc/testing.md -------------------------------------------------------------------------------- /wiimote/doc/tutorials/teleop.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/doc/tutorials/teleop.md -------------------------------------------------------------------------------- /wiimote/include/wiimote/stat_vector_3d.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/include/wiimote/stat_vector_3d.hpp -------------------------------------------------------------------------------- /wiimote/include/wiimote/teleop_wiimote.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/include/wiimote/teleop_wiimote.hpp -------------------------------------------------------------------------------- /wiimote/include/wiimote/wiimote_controller.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/include/wiimote/wiimote_controller.hpp -------------------------------------------------------------------------------- /wiimote/launch/feedback_test.launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/launch/feedback_test.launch.py -------------------------------------------------------------------------------- /wiimote/launch/turtlesim.launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/launch/turtlesim.launch.py -------------------------------------------------------------------------------- /wiimote/launch/wiimote_lifecycle.launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/launch/wiimote_lifecycle.launch.py -------------------------------------------------------------------------------- /wiimote/nodes/feedback_tester.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/nodes/feedback_tester.py -------------------------------------------------------------------------------- /wiimote/package.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/package.xml -------------------------------------------------------------------------------- /wiimote/src/gpl-2.0.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/src/gpl-2.0.txt -------------------------------------------------------------------------------- /wiimote/src/stat_vector_3d.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/src/stat_vector_3d.cpp -------------------------------------------------------------------------------- /wiimote/src/teleop_wiimote.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/src/teleop_wiimote.cpp -------------------------------------------------------------------------------- /wiimote/src/wiimote_controller.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/src/wiimote_controller.cpp -------------------------------------------------------------------------------- /wiimote/wiimote-extras.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote/wiimote-extras.cmake -------------------------------------------------------------------------------- /wiimote_msgs/CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote_msgs/CHANGELOG.rst -------------------------------------------------------------------------------- /wiimote_msgs/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote_msgs/CMakeLists.txt -------------------------------------------------------------------------------- /wiimote_msgs/msg/IrSourceInfo.msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote_msgs/msg/IrSourceInfo.msg -------------------------------------------------------------------------------- /wiimote_msgs/msg/State.msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote_msgs/msg/State.msg -------------------------------------------------------------------------------- /wiimote_msgs/msg/TimedSwitch.msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote_msgs/msg/TimedSwitch.msg -------------------------------------------------------------------------------- /wiimote_msgs/package.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ros-drivers/joystick_drivers/HEAD/wiimote_msgs/package.xml --------------------------------------------------------------------------------