ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2018-09-19 04:26:11 -0500 | received badge | ● Famous Question (source) |
2018-05-11 00:35:56 -0500 | received badge | ● Famous Question (source) |
2017-10-25 23:02:37 -0500 | received badge | ● Notable Question (source) |
2017-10-25 23:02:37 -0500 | received badge | ● Popular Question (source) |
2016-10-08 20:09:21 -0500 | asked a question | How to fix a problem of sound_play for playing wave file in c++? Hi everyone, I want to play a wave file by using sound_play in c++, the codes like: sound_play::SoundClient sc; sc.playWave("/root/Desktop/test.wav"); and it shows: [WARN] [WallTime: 1475855177.583316] Sound command issued, but no node is subscribed to the topic. Perhaps you forgot to run soundplay_node.py? but i have run it before, like: root@lgx-robot:~/hlf_ws# rosrun sound_play soundplay_node.py [INFO] [WallTime: 1475853878.411334] sound_play node is ready to play sound If i try to play it with python as is: rosrun sound_play play.py /root/Desktop/test.wav it is ok and you could hear the sound of the wave file. And if i run the command: rosrun sound_play say.py "hello world" it shows: root@lgx-robot:~/hlf_ws# rosrun sound_play say.py "hello world" Saying: hello world Voice: voice_kal_diphone and i could hear the sound. My environment is ubuntu14.04 LTS, ros indigo. what should i do? Should some one would help me? thanks |
2016-09-22 09:20:50 -0500 | commented answer | How to find the urdf of kinect v2? @Shay, I have a look at the link you provided, it have been updated, it is good for using in robot model now. Thank you all the same! |
2016-09-22 09:16:49 -0500 | received badge | ● Famous Question (source) |
2016-08-24 23:43:35 -0500 | received badge | ● Notable Question (source) |
2016-08-24 12:08:39 -0500 | received badge | ● Popular Question (source) |
2016-08-24 11:04:43 -0500 | commented answer | How to find the urdf of kinect v2? I have a look at it, the kinect2.urdf.xacro file is very simple, only one link,like: <link name="${prefix}_kinect2_rgb_optical_frame"> I don't know whether it is good enough to build a model for a robot. The urdf of kinect1 in turtlebot project is not so simple. |
2016-08-24 09:42:41 -0500 | answered a question | How to find the urdf of kinect v2? Thank you very much! |
2016-08-24 04:06:05 -0500 | asked a question | How to find the urdf of kinect v2? Hi all, Where can I find and how can I add a urdf file of the kinect v2 to urdf of my robot? Thanks in advance |
2016-08-15 00:52:25 -0500 | received badge | ● Enthusiast |
2016-08-12 13:36:48 -0500 | received badge | ● Notable Question (source) |
2016-08-12 02:54:57 -0500 | answered a question | How to play a wav content with the bitrate of 256kbps by audio_play? Hi ahendrix, thank you very much. As you said, i am doing tts(text to speech), i get the audio data and need to play it, there are two sources of audio data, one's bit rate is 16kbps and the other's is 256kbps, so i need to play them by audio_play. I put the audio data into a wave file so that some one else to reproduce the cases easily. Another way is to put the audio data into a wave file and then play it by sound_play if there is not a better way as you said. I can reproduce the cases you did, and i found some issues. The wave file with the bit rate of 256kbps, first, it doesn't play all the audio data, may be about the last 0.5 second of the all wave file data can not be heard, if you play it the second time, it only play the last 0.5 second of the all wave file data. Second, also with the wave file with the bit rate of 256kbps, if you play the first case the third time, forth time, or more, you can hear nothing unless you restart the audio_play: rosrun audio_play audio_play audio:=audio_connt_publisher May be some one else has a better way about it, let's look forward to that. Thank you very much. |
2016-08-11 01:34:25 -0500 | received badge | ● Popular Question (source) |
2016-08-10 21:31:13 -0500 | received badge | ● Editor (source) |
2016-08-04 08:35:58 -0500 | asked a question | How to play a wav content with the bitrate of 256kbps by audio_play? Hi every one, we provide a wav content with the bitrate of 16kbps for the audio_play to play, it is ok. Now, if the bitrate is another one, for example 256kbps, what shoud we do? Should we change the bitrate of the wav content? Should some one help me? thanks I have do some test like this: I have put the test source codes to the github, every one can git them from : test bite rate for audio play. My enviroment is: ubuntu 14.04 LTS, ros indigo. First you should install the audio_common: sudo apt-get install ros-indigo-audio-common Secondly, open the test_bite_rate_audio_play_server/src/test_bite_rate_audio_play_server.cpp, you will see the two lines codes: FILE *fp_test = fopen("/home/turtlebot/catkin_ws/src/test_bite_rate_audio_play_server/res/test2.wav", "r"); // this is no sound, it's bite rate is 256kbps //FILE *fp_test = fopen("/home/turtlebot/catkin_ws/src/test_bite_rate_audio_play_server/res/test1.wav", "r"); // this is ok, the bite rate is 16kbps you should replace the file path for your local environment. Then build the packages. Third, open a terminal and run : roscore the next few new tap, you may be run the source: source /home/turtlebot/catkin_ws/devel/setup.bash open a new tap and run: rosrun audio_play audio_play audio:=audio_content_publisher open a new tap and run: rosrun audio_server audio_content_publish_server open a new tap and run: rosrun test_bite_rate_audio_play_server test_bite_rate_audio_play_server Then you should hear nothing, or see a message at the final tap terminal: Segmentation fault (core dumped) Now, do the second test, it is nearly the same as the first test, common the first line and uncommon the second line, like this: //FILE *fp_test = fopen("/home/turtlebot/catkin_ws/src/test_bite_rate_audio_play_server/res/test2.wav", "r"); // this is no sound, it's bite rate is 256kbps FILE *fp_test = fopen("/home/turtlebot/catkin_ws/src/test_bite_rate_audio_play_server/res/test1.wav", "r"); // this is ok, the bite rate is 16kbps when you run the final command, you will hear some sound. The different of the two test is : the bite rate of wav files is different, one is 16kbps and the other is 256kbps, so some would help me? thanks |