-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jsk_pepper_startup] add node to play audio stream from Pepper's ROS audio topic #1073
Conversation
ログに親しみたいのでメモ.
|
First try dies due to the following error:
I don't know the reason of this error, and I'm not sure why the tries followed failed... |
[jsk_pepper_startup] start play audio stream node using subprocess
# nodelist_tmp: ('/pepper_1556630474468299832\n/rosout\n', None) | ||
nodelist=nodelist_tmp[0] | ||
# nodelist: '/pepper_1556630474468299832\n/rosout\n' | ||
nodelist=nodelist.split("\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このnodelistの中にnaoqi_driver_node
が含まれていなかったら、/pepper_robot/pose/pose_controller
を落とす
#1077 が解決する
What is this?
This node enables us to play what Pepper hears by using Pepper's audio ROS topic even if the Pepper's location is far away from us.
Subscribed Topic
~audio
(naoqi_bridge_msgs/AudioBuffer
)Services
start_subscribe_audio_topic
(std_srvs/Empty
)start playing audio stream
stop_subscribe_audio_topic
(std_srvs/Empty
)stop playing audio stream
How to use this?
memo
コールバック関数の中で最初の1回だけトピックのデータを読み込んで,チャンネル数,周波数を設定し,
ストリームを作ろうとしたが,以下のエラーが出てしまった.
そのため.クラスの初期化時にチャンネル数と周波数は決め打ちで値を与えて,ストリームを作ることにした.
コード(抜粋)
エラー