ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
There is most likely no problem with sound_play
and / or audio_common
.
I see, so the problem is that it exits even though it is not told so.
According to the console output you show, it is actually told to shutdown:
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!
Because rehabilitation_framework-3
dies, and is set as required
in your launch file, roslaunch
will start shutting down all the other nodes. That would include your sound_play
node.
So the real issue here is: why does rehabilitation_framework
shut down?
Probably because of:
rosgraph.masterapi.MasterError: Parameter [/reha_exercise/motion_type] is not set
I don't know anything about this software, so I can't help you there, but the error should be on line 856 in /home/odroid/catkin_ws.tolga/src/rehabilitation_framework-working_demo_with_gui/src/Exercises.py
, which is:
ros_motion_type = rosparam.get_param("/reha_exercise/motion_type")
Are you starting everything correctly? Is the launch file setting that parameter? If not, that is what the problem is.