How properly install audio_common package?
Hello, My ros package uses audio_common package and even though I installed it with the command: sudo apt-get install ros-kinetic-audio_common I keep getting below warnings about soundplay.py. Please ignore the error in my log as it is another story.
odroid@QT05:~$ roslaunch rehabilitation_framework Exercise_Launcher.launch
WARNING: Package name "robAPL" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
... logging to /home/odroid/.ros/log/a2e6ab5a-64a4-11e8-b054-6dc2e0f8cf5e/roslaunch-QT05-16257.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://192.168.100.1:38145/
SUMMARY
========
PARAMETERS
* /rosdistro: kinetic
* /rosversion: 1.12.13
NODES
/
rehabilitation_framework (rehabilitation_framework/Exercises.py)
sound_play (sound_play/soundplay_node.py)
wm_voice_generator (wm_voice_generator/wm_voice_component_short.py)
ROS_MASTER_URI=http://192.168.100.1:11311/
WARNING: Package name "robAPL" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
WARNING: Package name "robAPL" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
process[sound_play-1]: started with pid [16274]
process[wm_voice_generator-2]: started with pid [16275]
process[rehabilitation_framework-3]: started with pid [16276]
Traceback (most recent call last):
File "/home/odroid/catkin_ws.tolga/src/rehabilitation_framework-working_demo_with_gui/src/Exercises.py", line 856, in <module>
ros_motion_type = rosparam.get_param("/reha_exercise/motion_type")
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosparam/__init__.py", line 214, in get_param
return get_param_server().getParam(param)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosgraph/masterapi.py", line 206, in getParam
return self._succeed(self.handle.getParam(self.caller_id, key))
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosgraph/masterapi.py", line 154, in _succeed
raise Error(msg)
rosgraph.masterapi.MasterError: Parameter [/reha_exercise/motion_type] is not set
================================================================================REQUIRED process [rehabilitation_framework-3] has died!
process has died [pid 16276, exit code 1, cmd /home/odroid/catkin_ws.tolga/src/rehabilitation_framework-working_demo_with_gui/src/Exercises.py __name:=rehabilitation_framework __log:=/home/odroid/.ros/log/a2e6ab5a-64a4-11e8-b054-6dc2e0f8cf5e/rehabilitation_framework-3.log].
log file: /home/odroid/.ros/log/a2e6ab5a-64a4-11e8-b054-6dc2e0f8cf5e/rehabilitation_framework-3*.log
Initiating shutdown!
================================================================================
[rehabilitation_framework-3] killing on exit
[wm_voice_generator-2] killing on exit
[sound_play-1] killing on exit
[WARN] [1527752949.115161]: Sound command issued, but no node is subscribed to the topic. Perhaps you forgot to run soundplay_node.py?
[WARN] [1527752950.116654]: Sound command issued, but no node is subscribed to the topic. Perhaps you forgot to run soundplay_node.py?
shutting down processing monitor...
... shutting down processing monitor complete
done
odroid@QT05:~$
Which warnings are you referring to here? I see a nr of them, and some of them are harmless (the naming convention one) and others are perfectly explainable (the ones about "no node subscribed":
sound_play
shut down just before that).Please clarify.
It looks like the other errors in your launch file are causing premature shutdown of the sound_play node, which is causing the sound_play errors.
These warnings:
Well, looking a few lines up from those lines, you can see:
so the
sound_play
node already exited. The warning seems correct: it is not running any longer.I see, so the problem is that it exits even though it is not told so.
The
sound_play
node exits because roslaunch terminates it. roslaunch shuts down because your node crashed:================================================================================REQUIRED process [rehabilitation_framework-3] has died!