Niryo_robot_sound
========================================
This package deals with the sound of the robot.
Sound Node
--------------------------
The ROS Node is made of services to play, stop, import and delete a sound on the robot. It is also possible to set the volume of the robot.
It belongs to the ROS namespace: |namespace_emphasize|.
Parameters - Sound
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here is a list of the different parameters that allow you to adjust the default settings of the robot and the system sounds.
.. list-table:: Parameters of the volume Sound component
:header-rows: 1
:widths: auto
:stub-columns: 0
:align: center
* - Name
- Description
- Default value
* - ``default_volume``
- Default volume on the real robot
- 100
* - ``default_volume_simulation``
- Default volume in simulation
- 10
* - ``min_volume``
- Minimum volume of the robot
- 0
* - ``max_volume``
- Maximum volume of the robot
- 200
* - ``volume_file_path``
- File where the volume of the real robot set by the user is stored
- "~/niryo_robot_saved_files/robot_sound_volume.txt"
* - ``volume_file_path_simulation``
- File where the volume in simulation set by the user is stored
- "~/.niryo/simulation/robot_sound_volume.txt"
.. list-table:: Parameters of the Sound component
:header-rows: 1
:widths: auto
:stub-columns: 0
:align: center
* - Name
- Description
- Default value
* - ``path_user_sound``
- Default volume on the real robot
- "~/niryo_robot_saved_files/niryo_robot_user_sounds"
* - ``path_user_sound_simulation``
- Default volume in simulation
- "~/.niryo/simulation/niryo_robot_user_sounds"
* - ``path_robot_sound``
- Minimum volume of the robot
- "niryo_robot_state_sounds"
* - ``robot_sounds/error_sound``
- Sound played when an error occurs
- error.wav
* - ``robot_sounds/turn_on_sound``
- Sound played at the start-up of the robot
- booting.wav
* - ``robot_sounds/turn_off_sound``
- Sound played at shutdown
- stop.wav
* - ``robot_sounds/connection_sound``
- Sound played an Niryo Studio connection
- connected.wav
* - ``robot_sounds/robot_ready_sound``
- Sound played when the robot is ready
- ready.wav
* - ``robot_sounds/calibration_sound``
- Sound played at start of calibration
- calibration.wav
.. list-table:: State sounds
:header-rows: 1
:widths: auto
:stub-columns: 0
:align: center
* - State
- Description
- Sound
* - Booting
- Sound played while booting
- .. raw:: html
* - Ready
- Sound played when the robot is ready after booting
- .. raw:: html
* - Calibration
- Sound played at start of calibration
- .. raw:: html
* - Connected
- Notify of a connection to Niryo Studio
- .. raw:: html
* - Reboot
- Sound played at start of a motor reboot
- .. raw:: html
* - Warn
- Sound played when a warning occurs
- .. raw:: html
* - Error
- Sound played when a robot/motor/raspberry/program/overheating error occurs
- .. raw:: html
* - Shutdown
- Sound played at shutdown
- .. raw:: html
Publisher - Sound
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. list-table:: Sound Package's Publishers
:header-rows: 1
:widths: auto
:stub-columns: 0
:align: center
* - Name
- Message Type
- Description
* - ``/niryo_robot_sound/sound``
- :std_msgs:`std_msgs/String`
- Publisesh the sound being played
* - ``/niryo_robot_sound/volume``
- :std_msgs:`std_msgs/UInt8`
- Publishes the volume of the robot
* - ``/niryo_robot_sound/sound_database``
- :ref:`SoundList