Skip to content
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_naoqi_robot] READMEをアップデートする #62

Open
a-ichikura opened this issue Jul 13, 2022 · 35 comments
Open

[jsk_naoqi_robot] READMEをアップデートする #62

a-ichikura opened this issue Jul 13, 2022 · 35 comments

Comments

@a-ichikura
Copy link

Setup Environment
1.Install Python Naoqi SDK You can download it here.

hereに紐づけられたURLがリンク切れしていたので、修正を行う
正しいURL↓
https://developer.softbankrobotics.com/nao6/naoqi-developer-guide/sdks/python-sdk/python-sdk-installation-guide#python-install-guide

★naoqiのversionが2.5.5ではなく2.8.7(2021年9月リリース)が最新になっている。
★jsk-ros-pkgのjsk_naoqi_robotのREADME.mdではSDKをgoogleドライブからdownloadするやり方が書いてあるので、そちらのやり方の方が確実かもしれない。

@k-okada
Copy link
Owner

k-okada commented Jul 14, 2022

環境設定の方法ですが,色々情報が錯綜して申し訳ないですが,https://github.com/k-okada/jsk_robot/tree/pepper_cross/jsk_naoqi_robot#setup-environment (jsk-ros-pkg#1528 )に情報を整理したいとおもいます.

また,文章はいくつか読み替えが必要で,
SDKは @ayfujii さんが作ってくれたバックアップドライブからダウンロードする.
僕の手元にあったものも置いてあるので,微妙にバージョンが違うものがありそうだけど,多分どれでも大丈夫だともう.

1)ダウンロードしたバージョンのファイル名に応じて,

export PYTHONPATH=$HOME/pynaoqi/pynaoqi-python2.7-2.5.5.5-linux64/lib/python2.7/site-packages:$PYTHONPATH

をセットする.
NAO_IPやROS_IPも自分のPCのアドレスに応じてセット,

2)mkdir -p catkin_ws/src の部分で,catkin_ws は自分の環境に合わせてセット,例えばpepper_202207_ws みたいにしておくと良いとおもいます.の残りの部分も同じように読み替える

3) https://raw.githubusercontent.com/jsk-ros-pkg/jsk_robot/master/jsk_naoqi_robot/naoqi.rosinstall は今あるプルリクエストがマージされたとした後のURLなので,https://raw.githubusercontent.com/k-okada/jsk_robot/pepper_cross/jsk_naoqi_robot/naoqi.rosinstall とする.

4)これで,エラー無くコンパイル出来たら,

roslaunch jsk_pepper_startup jsk_pepper_startup.launch

してから,
https://github.com/jsk-ros-pkg/jsk_robot/blob/master/jsk_naoqi_robot/peppereus/README.md#control-pepper-via-roseus
見て,色々動かしてみてください.

5)で,この時,unitree でも使っているapp_chooserが
http://<自分のPCのIP>:8000/rwt_app_chooser/
から使えるようになっているはずです.(未確認)

で,この使い方はぜひ覚えてほしいところです.基本は
https://github.com/k-okada/jsk_robot/tree/pepper_cross/jsk_naoqi_robot/jsk_pepper_startup/apps
みたいにアプリ毎にディレクトリ作って,
https://github.com/k-okada/jsk_robot/blob/pepper_cross/jsk_naoqi_robot/jsk_pepper_startup/apps/meeting/meeting.xml
でデモのlaunchファイルと作ればOKです.これは @kochigami の研究会アプリです.
https://github.com/k-okada/jsk_robot/blob/pepper_cross/jsk_naoqi_robot/jsk_pepper_startup/apps/meeting/meeting.png
がweb インターフェースから見えるアイコンなので,別件ですがぜひこれは変えてほしいです.
すべてのデモをこれで管理していくと,(meeting はもうちょっと整理が必要ですが)
#60 (comment)
@tkmtnt7000 に振ったみたいに,自動で思い出メールが届けられるようになるはずです.

#60 (comment)

@a-ichikura
Copy link
Author

a-ichikura commented Jul 14, 2022 via email

@ayfujii
Copy link

ayfujii commented Jul 14, 2022

市倉さん

ご連絡ありがとうございます。

あまりpepperは詳しくないのですが、naoでも同じようなエラーを見かけることがある気がします。
(あまりちゃんと覚えていないので厳密に同じかはわかりませんが)
エラーがでてもめげずに、10回くらい同じlaunchを立ち上げ続けるといつか繋がることがあるかもしれないです。
(かなり適当ですみません。)

また、
network_interface:=enx70886b8f1b7d
は現在pepperと繋げている有線or無線と一致していますでしょうか。

@ayfujii
Copy link

ayfujii commented Jul 14, 2022

  what():  	ALProxy::ALProxy
	Can't find service: ROS-Driver-Audio

の部分がよくないかもしれないと思いました。

関係あるのかわかりませんが、
launch_play_audio_stream:=false
をつけ加えても同じエラーが出ますでしょうか?

@ayfujii
Copy link

ayfujii commented Jul 14, 2022

市倉さん

たびたびすみません。
もしかするとpythonSDKのバージョンが原因かもしれないと思えてきました。
上記のことをやってうまくいかなかったら、一度2.5.5のSDKをいれてPATHも書き換えて試してみていただけないでしょうか?

@kochigami お時間があるときに東風上さんが使われているpythonSDKのバージョンを教えていただけると幸いです。
(なんとなく全員で統一した方が良い気がしました。)

@a-ichikura
Copy link
Author

a-ichikura commented Jul 14, 2022 via email

@ayfujii
Copy link

ayfujii commented Jul 14, 2022

pepperのSDKなどのページを見ると、2.5系しか置かれていないので、もしかすると、2.8はNaoのV6用でpepperには対応していないのかもしれないと思いました。
https://www.softbankrobotics.com/emea/en/support/pepper-naoqi-2-9/downloads-softwares/former-versions?os=49&category=108

また、pepperの最新のSDKはQiSDKと呼ばれる2.9になっているようで、Androidアプリのように開発できるみたいです。
(pythonやROSでは使えないようですが...)
https://developer.softbankrobotics.com/blog/comparison-peppers-os-versions

@k-okada
Copy link
Owner

k-okada commented Jul 15, 2022

@a-ichikura 以下のそれぞれの結果はどうなっているかな?

$ echo $PYTHONPATH
/home/k-okada/catkin_ws/ws_pepper/devel/lib/python2.7/dist-packages:/opt/ros/melodic/lib/python2.7/dist-packages:/home/k-okada/pynaoqi/pynaoqi-python2.7-2.5.5.5-linux64/lib/python2.7/site-packages:
$ rosversion naoqi_driver
0.5.10
$ rospack find naoqi_driver
/home/k-okada/catkin_ws/ws_pepper/src/naoqi_driver
$ roscd naoqi_driver
$ git branch
* kochigami-develop
  master
$ git remote -v
k-okada	[email protected]:k-okada/naoqi_driver.git (fetch)
k-okada	[email protected]:k-okada/naoqi_driver.git (push)
origin	[email protected]:kochigami/naoqi_driver (fetch)
origin	[email protected]:kochigami/naoqi_driver (push)

@a-ichikura
Copy link
Author

a-ichikura commented Jul 15, 2022

$echo $PYTHONPATH
/home/ichikura/naoqi_ws/devel/lib/python2.7/dist-packages:/opt/ros/melodic/lib/python2.7/dist-packages:/home/ichikura/pynaoqi/pynaoqi-python2.7-2.5.5.5-linux64/lib/python2.7/site-packages
$ rospack find naoqi_driver
/home/ichikura/naoqi_ws/src/naoqi_driver
$ rosversion naoqi_driver
0.5.10
$ roscd naoqi_driver
$ git branch
* kochigami-develop
  master
$ git remote -v
origin	https://github.com/kochigami/naoqi_driver (fetch)
origin	https://github.com/kochigami/naoqi_driver (push)

Python SDKのpathを書き換えました。
また、launch_play_audio_streamをfalseにしましたが

  what():  	ALProxy::ALProxy
	Can't find service: ROS-Driver-Audio

ここのエラーは変わらずです。

$ roslaunch jsk_pepper_startup jsk_pepper_startup.launch launch_play_audio_stream:=false launch_joy:=false network_interface:=enx70886b8f1b7d
... logging to /home/ichikura/.ros/log/10c4dfb4-040d-11ed-88cf-287fcf9948c3/roslaunch-ichikura-ThinkPad-T495s-21107.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://169.254.54.161:38469/

SUMMARY
========

CLEAR PARAMETERS
 * /naoqi_dashboard_aggregator/

PARAMETERS
 * /naoqi_dashboard_aggregator/analyzers/joystick/discard_stale: True
 * /naoqi_dashboard_aggregator/analyzers/joystick/find_and_remove_prefix: joy_node
 * /naoqi_dashboard_aggregator/analyzers/joystick/path: Joystick
 * /naoqi_dashboard_aggregator/analyzers/joystick/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Camera/find_and_remove_prefix: naoqi_driver_camera
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Camera/path: Camera
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Camera/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/find_and_remove_prefix: naoqi_driver_comp...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/path: Computer
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/find_and_remove_prefix: naoqi_driver_joints:
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/path: Joints
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Network/find_and_remove_prefix: naoqi_driver_network
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Network/path: Network
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Network/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/find_and_remove_prefix: naoqi_driver_batt...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/path: Power System
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/path: NAOqi
 * /naoqi_dashboard_aggregator/analyzers/naoqi/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/tf/find_and_remove_prefix: tf_monitor:
 * /naoqi_dashboard_aggregator/analyzers/tf/path: TF
 * /naoqi_dashboard_aggregator/analyzers/tf/type: diagnostic_aggreg...
 * /pepper_robot/camera/camera_nodelet_manager/num_worker_threads: 4
 * /pepper_robot/camera/depth_rectify_depth/interpolation: 0
 * /pepper_robot/camera/depth_registered_rectify_depth/interpolation: 0
 * /pepper_robot/pose/pose_manager/poses/init/joint_names: ['Body']
 * /pepper_robot/pose/pose_manager/poses/init/positions: [0.0, 0.0, 1.39, ...
 * /pepper_robot/pose/pose_manager/poses/init/time_from_start: 1.5
 * /pepper_robot/pose/pose_manager/poses/zero/joint_names: ['Body']
 * /pepper_robot/pose/pose_manager/poses/zero/positions: [0.0, 0.0, 0.0, 0...
 * /pepper_robot/pose/pose_manager/poses/zero/time_from_start: 1.5
 * /pepper_robot/pose/pose_manager/xap: /home/ichikura/na...
 * /robot/name: hop
 * /robot/type: pepper
 * /rosdistro: melodic
 * /rosversion: 1.14.13

NODES
  /
    list_up_ros_node (jsk_pepper_startup/list_up_ros_node.py)
    naoqi_dashboard (naoqi_dashboard/naoqi_dashboard)
    naoqi_dashboard_aggregator (diagnostic_aggregator/aggregator_node)
    pepper_robot (naoqi_driver/naoqi_driver_node)
    speaking_program_is_started_or_terminated (roseus/roseus)
    tf_monitor (diagnostic_common_diagnostics/tf_monitor.py)
  /pepper_robot/camera/
    bottom_rectify_color (nodelet/nodelet)
    camera_nodelet_manager (nodelet/nodelet)
    depth_metric (nodelet/nodelet)
    depth_metric_rect (nodelet/nodelet)
    depth_rectify_depth (nodelet/nodelet)
    depth_registered_hw_metric_rect (nodelet/nodelet)
    depth_registered_metric (nodelet/nodelet)
    depth_registered_rectify_depth (nodelet/nodelet)
    depth_registered_sw_metric_rect (nodelet/nodelet)
    front_rectify_color (nodelet/nodelet)
    ir_rectify_ir (nodelet/nodelet)
    points_xyzrgb_hw_registered (nodelet/nodelet)
    points_xyzrgb_sw_registered (nodelet/nodelet)
    register_depth_front (nodelet/nodelet)
  /pepper_robot/pose/
    pose_controller (naoqi_pose/pose_controller.py)
    pose_manager (naoqi_pose/pose_manager.py)

ROS_MASTER_URI=http://localhost:11311

process[pepper_robot-1]: started with pid [21128]
process[pepper_robot/pose/pose_controller-2]: started with pid [21129]
process[pepper_robot/pose/pose_manager-3]: started with pid [21130]
process[pepper_robot/camera/camera_nodelet_manager-4]: started with pid [21131]
process[pepper_robot/camera/front_rectify_color-5]: started with pid [21132]
process[pepper_robot/camera/bottom_rectify_color-6]: started with pid [21133]
process[pepper_robot/camera/ir_rectify_ir-7]: started with pid [21139]
process[pepper_robot/camera/depth_rectify_depth-8]: started with pid [21145]
process[pepper_robot/camera/depth_metric_rect-9]: started with pid [21162]
[ INFO] [1657869547.489568832]: Initializing nodelet with 4 worker threads.
Receiving information about robot model
process[pepper_robot/camera/depth_metric-10]: started with pid [21178]
process[pepper_robot/camera/register_depth_front-11]: started with pid [21185]
process[pepper_robot/camera/points_xyzrgb_sw_registered-12]: started with pid [21191]
process[pepper_robot/camera/depth_registered_sw_metric_rect-13]: started with pid [21197]
process[pepper_robot/camera/depth_registered_rectify_depth-14]: started with pid [21203]
process[pepper_robot/camera/points_xyzrgb_hw_registered-15]: started with pid [21208]
process[pepper_robot/camera/depth_registered_hw_metric_rect-16]: started with pid [21215]
process[pepper_robot/camera/depth_registered_metric-17]: started with pid [21217]
process[naoqi_dashboard-18]: started with pid [21226]
set prefix successfully to pepper_robot
process[tf_monitor-19]: started with pid [21235]
using ip address: 169.254.54.161 @ enx70886b8f1b7d
found a catkin prefix /home/ichikura/naoqi_ws/src/naoqi_driver/share/boot_config.json
load boot config from /home/ichikura/naoqi_ws/src/naoqi_driver/share/boot_config.json
process[naoqi_dashboard_aggregator-20]: started with pid [21238]
process[list_up_ros_node-21]: started with pid [21239]
process[speaking_program_is_started_or_terminated-22]: started with pid [21245]
no camera information found for camera_source 3 and res: 1
found a catkin URDF /home/ichikura/naoqi_ws/src/naoqi_driver/share/urdf/pepper.urdf
configuring by "/opt/ros/melodic/share/euslisp/jskeus/eus//lib/eusrt.l"
;; readmacro ;; object ;; packsym ;; common ;; constants ;; stream ;; string ;; loader ;; pprint ;; process ;; hashtab ;; array ;; mathtran ;; eusdebug ;; eusforeign ;; extnum ;; coordinates ;; tty ;; history ;; toplevel ;; trans ;; comp ;; builtins ;; par ;; intersection ;; geoclasses ;; geopack ;; geobody ;; primt ;; compose ;; polygon ;; viewing ;; viewport ;; viewsurface ;; hid ;; shadow ;; bodyrel ;; dda ;; helpsub ;; eushelp ;; xforeign ;; Xdecl terminate called after throwing an instance of 'qi::FutureUserException'
  what():  	ALProxy::ALProxy
	Can't find service: ROS-Driver-Audio
;; Xgraphics ;; Xcolor ;; Xeus ;; Xevent ;; Xpanel ;; Xitem ;; Xtext ;; Xmenu ;; Xscroll ;; Xcanvas ;; Xtop ;; Xapplwin 
connected to Xserver DISPLAY=:0
X events are being asynchronously monitored.
;; pixword ;; RGBHLS ;; convolve ;; piximage ;; pbmfile ;; image_correlation ;; oglforeign ;; gldecl ;; glconst ;; glforeign ;; gluconst ;; gluforeign ;; glxconst ;; glxforeign ;; eglforeign ;; eglfunc ;; glutil ;; gltexture ;; glprim ;; gleus ;; glview ;; toiv-undefined ;; fstringdouble irtmath irtutil irtc irtgeoc irtgraph gnuplotlib ___time ___pgsql irtgeo euspqp pqp irtscene irtmodel irtdyna irtrobot irtsensor irtbvh irtcollada irtstl irtwrl irtpointcloud eusbullet bullet irtcollision irtx eusjpeg euspng png irtimage irtglrgb 
;; extending gcstack 0x55d20195c690[16374] --> 0x55d201deb480[32748] top=3d4b
irtgl irtglc irtviewer 
EusLisp 9.29( 1.2.5) for Linux64 created on ip-10-0-1-68(Tue Mar 1 05:47:01 PST 2022)
roseus ================================================================================REQUIRED process [pepper_robot-1] has died!
process has died [pid 21128, exit code -6, cmd /home/ichikura/naoqi_ws/devel/lib/naoqi_driver/naoqi_driver_node --qi-url=tcp://169.254.23.145:9559 --roscore_ip=169.254.54.161 --network_interface=enx70886b8f1b7d --namespace=pepper_robot --bootconfig_name=boot_config.json __name:=pepper_robot __log:=/home/ichikura/.ros/log/10c4dfb4-040d-11ed-88cf-287fcf9948c3/pepper_robot-1.log].
log file: /home/ichikura/.ros/log/10c4dfb4-040d-11ed-88cf-287fcf9948c3/pepper_robot-1*.log
Initiating shutdown!
================================================================================
;; loading roseus("1.7.4") on euslisp((9.29 ip-10-0-1-68 Tue Mar 1 05:47:01 PST 2022  1.2.5))
eustf [INFO] [1657869548.222032]: Connecting to NaoQi at 169.254.23.145:9559
[I] 1657869548.226547 21129 qimessaging.session: Session listener created on tcp://0.0.0.0:0
[I] 1657869548.226982 21129 qimessaging.transportserver: TransportServer will listen on: tcp://172.17.0.1:37867
[W] 1657869548.226983 21283 qi.path.sdklayout: No Application was created, trying to deduce paths
[I] 1657869548.227012 21129 qimessaging.transportserver: TransportServer will listen on: tcp://169.254.54.161:37867
[I] 1657869548.227059 21129 qimessaging.transportserver: TransportServer will listen on: tcp://127.0.0.1:37867
[I] 1657869548.227069 21129 qimessaging.transportserver: TransportServer will listen on: tcp://192.168.97.189:37867
[speaking_program_is_started_or_terminated-22] killing on exit
[list_up_ros_node-21] killing on exit
[naoqi_dashboard_aggregator-20] killing on exit
[tf_monitor-19] killing on exit
[naoqi_dashboard-18] killing on exit
[ WARN] [1657869548.266286784]: ros::roseus-sigint-handler 2
[pepper_robot/camera/depth_registered_metric-17] killing on exit
[pepper_robot/camera/depth_registered_hw_metric_rect-16] killing on exit
[pepper_robot/camera/points_xyzrgb_hw_registered-15] killing on exit
[pepper_robot/camera/depth_registered_rectify_depth-14] killing on exit
[pepper_robot/camera/depth_registered_sw_metric_rect-13] killing on exit
Traceback (most recent call last):
  File "/opt/ros/melodic/lib/diagnostic_common_diagnostics/tf_monitor.py", line 42, in <module>
    import roslib; roslib.load_manifest('diagnostic_common_diagnostics')
  File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/launcher.py", line 64, in load_manifest
    sys.path = _generate_python_path(package_name, _rospack) + sys.path
  File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/launcher.py", line 97, in _generate_python_path
    m = rospack.get_manifest(pkg)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 171, in get_manifest
    return self._load_manifest(name)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 215, in _load_manifest
    retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self)
  File "/usr/lib/python2.7/dist-packages/rospkg/manifest.py", line 414, in parse_manifest_file
    _static_rosdep_view = init_rospack_interface()
  File "/usr/lib/python2.7/dist-packages/rosdep2/rospack.py", line 60, in init_rospack_interface
    lookup = _get_default_RosdepLookup(Options())
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 136, in _get_default_RosdepLookup
    verbose=options.verbose)
  File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 605, in create_default
    matcher = DataSourceMatcher.create_default(os_override=os_override)
  File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 296, in create_default
    os_name, os_version, os_codename = os_detect.detect_os()
  File "/usr/lib/python2.7/dist-packages/rospkg/os_detect.py", line 593, in detect_os
    if os_detector.is_os():
  File "/usr/lib/python2.7/dist-packages/rospkg/os_detect.py", line 525, in is_os
    return platform.system() == "Windows"
  File "/usr/lib/python2.7/platform.py", line 1321, in system
    return uname()[0]
  File "/usr/lib/python2.7/platform.py", line 1288, in uname
    processor = _syscmd_uname('-p','')
  File "/usr/lib/python2.7/platform.py", line 1019, in _syscmd_uname
    f = os.popen('uname %s 2> %s' % (option, DEV_NULL))
KeyboardInterrupt
[WARN] [1657869548.331881]: Collection LLeg not found on your robot.
[WARN] [1657869548.337842]: Collection RLeg not found on your robot.
[pepper_robot/camera/points_xyzrgb_sw_registered-12] killing on exit
[pepper_robot/camera/register_depth_front-11] killing on exit
Traceback (most recent call last):
  File "/home/ichikura/naoqi_ws/src/naoqi_dashboard/scripts/naoqi_dashboard", line 46, in <module>
    sys.exit(main.main(sys.argv, standalone=pkg))
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/main.py", line 65, in main
    hash(os.environ['ROS_PACKAGE_PATH'])))
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/main.py", line 444, in main
    app = self.create_application(argv)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/main.py", line 69, in create_application
    app = super(Main, self).create_application(argv)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/main.py", line 210, in create_application
    app = QApplication(argv)
KeyboardInterrupt
Traceback (most recent call last):
  File "/home/ichikura/naoqi_ws/src/jsk_robot/jsk_naoqi_robot/jsk_pepper_startup/nodes/list_up_ros_node.py", line 72, in <module>
    list_up_node = ListUpROSNode()
  File "/home/ichikura/naoqi_ws/src/jsk_robot/jsk_naoqi_robot/jsk_pepper_startup/nodes/list_up_ros_node.py", line 11, in __init__
    rospy.init_node("list_up_ros_node")
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/client.py", line 323, in init_node
    raise rospy.exceptions.ROSInitException("init_node interrupted before it could complete")
rospy.exceptions.ROSInitException: init_node interrupted before it could complete
[pepper_robot/camera/depth_metric-10] killing on exit
[INFO] [1657869548.497205]: nao_controller initialized
[INFO] [1657869548.499125]: nao pose_controller running...
[pepper_robot/camera/depth_metric_rect-9] killing on exit
[pepper_robot/camera/depth_rectify_depth-8] killing on exit
[pepper_robot/camera/ir_rectify_ir-7] killing on exit
[pepper_robot/camera/bottom_rectify_color-6] killing on exit
[pepper_robot/camera/front_rectify_color-5] killing on exit
[pepper_robot/camera/camera_nodelet_manager-4] killing on exit
[pepper_robot/pose/pose_manager-3] killing on exit
[pepper_robot/pose/pose_controller-2] killing on exit
[INFO] [1657869548.676205]: Stopping pose_controller
[INFO] [1657869548.723057]: pose_controller stopped
[pepper_robot-1] killing on exit
[WARN] [1657869548.847432]: stop_walk_srv not available, pose_manager will not stop the walker before executing a trajectory. This is normal if there is no nao_walker running.
[INFO] [1657869548.870159]: nao pose_controller stopped.
shutting down processing monitor...
... shutting down processing monitor complete
done

@a-ichikura
Copy link
Author

jsk-ros-pkg#1474 (comment)

上記の方法でnaoqi_driver.launchは立ち上がりました。

$ roslaunch naoqi_driver naoqi_driver.launch network_interface:=enx70886b8f1b7d
... logging to /home/ichikura/.ros/log/10c4dfb4-040d-11ed-88cf-287fcf9948c3/roslaunch-ichikura-ThinkPad-T495s-25762.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://169.254.54.161:37553/

SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.13

NODES
  /
    naoqi_driver (naoqi_driver/naoqi_driver_node)

ROS_MASTER_URI=http://localhost:11311

process[naoqi_driver-1]: started with pid [25780]
Receiving information about robot model
set prefix successfully to naoqi_driver
using ip address: 127.0.0.1 @ enx70886b8f1b7d
found a catkin prefix /home/ichikura/naoqi_ws/src/naoqi_driver/share/boot_config.json
load boot config from /home/ichikura/naoqi_ws/src/naoqi_driver/share/boot_config.json
no camera information found for camera_source 3 and res: 1
found a catkin URDF /home/ichikura/naoqi_ws/src/naoqi_driver/share/urdf/pepper.urdf
RightBumperPressed
LeftBumperPressed
BackBumperPressed
ROS-Driver-RightBumperPressed : Start
HandRightBackTouched
HandRightLeftTouched
HandRightRightTouched
HandLeftBackTouched
HandLeftLeftTouched
HandLeftRightTouched
ROS-Driver-HandRightBackTouched : Start
FrontTactilTouched
MiddleTactilTouched
RearTactilTouched
ROS-Driver-FrontTactilTouched : Start
ChestButtonPressed
ROS-Driver-ChestButtonPressed : Start
registered subscriber:	teleop
registered subscriber:	moveto
registered subscriber:	speech
nodehandle reset 
using master ip: http://127.0.0.1:11311
NOT going to re-register the converters
camera/bottom/image_raw is resetting
camera/bottom/image_raw reset
camera/depth/image_raw is resetting
camera/depth/image_raw reset
/diagnostics is resetting
/diagnostics reset
camera/front/image_raw is resetting
camera/front/image_raw reset
imu/base is resetting
imu/base reset
imu/torso is resetting
imu/torso reset
info is resetting
load robot description from file
info reset
camera/ir/image_raw is resetting
camera/ir/image_raw reset
/joint_states is resetting
/joint_states reset
laser is resetting
laser reset
odom is resetting
odom reset
sonar is resetting
sonar reset
teleop is resetting
teleop reset
moveto is resetting
moveto reset
speech is resetting
speech reset
get_robot_config is resetting
get_robot_config reset
set_language is resetting
set_language reset
get_language is resetting
get_language reset
fade leds service is resetting
fade leds service reset
reset leds service is resetting
reset leds service reset
play audio file is resetting
play audio file reset
set volume service is resetting
set volume service reset
get volume service is resetting
get volume service reset
naoqi_driver initialized

jsk_pepper_startup.launchは立ち上がってもすぐに落ちてしまいます。

$ roslaunch jsk_pepper_startup jsk_pepper_startup.launch network_interface:=enx70886b8f1b7d launch_joy:=false
... logging to /home/ichikura/.ros/log/10c4dfb4-040d-11ed-88cf-287fcf9948c3/roslaunch-ichikura-ThinkPad-T495s-27563.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://169.254.54.161:37557/

SUMMARY
========

CLEAR PARAMETERS
 * /naoqi_dashboard_aggregator/

PARAMETERS
 * /naoqi_dashboard_aggregator/analyzers/joystick/discard_stale: True
 * /naoqi_dashboard_aggregator/analyzers/joystick/find_and_remove_prefix: joy_node
 * /naoqi_dashboard_aggregator/analyzers/joystick/path: Joystick
 * /naoqi_dashboard_aggregator/analyzers/joystick/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Camera/find_and_remove_prefix: naoqi_driver_camera
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Camera/path: Camera
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Camera/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/find_and_remove_prefix: naoqi_driver_comp...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/path: Computer
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/find_and_remove_prefix: naoqi_driver_joints:
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/path: Joints
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Network/find_and_remove_prefix: naoqi_driver_network
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Network/path: Network
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Network/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/find_and_remove_prefix: naoqi_driver_batt...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/path: Power System
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/path: NAOqi
 * /naoqi_dashboard_aggregator/analyzers/naoqi/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/tf/find_and_remove_prefix: tf_monitor:
 * /naoqi_dashboard_aggregator/analyzers/tf/path: TF
 * /naoqi_dashboard_aggregator/analyzers/tf/type: diagnostic_aggreg...
 * /pepper_robot/camera/camera_nodelet_manager/num_worker_threads: 4
 * /pepper_robot/camera/depth_rectify_depth/interpolation: 0
 * /pepper_robot/camera/depth_registered_rectify_depth/interpolation: 0
 * /pepper_robot/pose/pose_manager/poses/init/joint_names: ['Body']
 * /pepper_robot/pose/pose_manager/poses/init/positions: [0.0, 0.0, 1.39, ...
 * /pepper_robot/pose/pose_manager/poses/init/time_from_start: 1.5
 * /pepper_robot/pose/pose_manager/poses/zero/joint_names: ['Body']
 * /pepper_robot/pose/pose_manager/poses/zero/positions: [0.0, 0.0, 0.0, 0...
 * /pepper_robot/pose/pose_manager/poses/zero/time_from_start: 1.5
 * /pepper_robot/pose/pose_manager/xap: /home/ichikura/na...
 * /robot/name: hop
 * /robot/type: pepper
 * /rosdistro: melodic
 * /rosversion: 1.14.13

NODES
  /
    list_up_ros_node (jsk_pepper_startup/list_up_ros_node.py)
    naoqi_dashboard (naoqi_dashboard/naoqi_dashboard)
    naoqi_dashboard_aggregator (diagnostic_aggregator/aggregator_node)
    pepper_robot (naoqi_driver/naoqi_driver_node)
    play_audio_stream (jsk_pepper_startup/play_audio_stream.py)
    speaking_program_is_started_or_terminated (roseus/roseus)
    tf_monitor (diagnostic_common_diagnostics/tf_monitor.py)
  /pepper_robot/camera/
    bottom_rectify_color (nodelet/nodelet)
    camera_nodelet_manager (nodelet/nodelet)
    depth_metric (nodelet/nodelet)
    depth_metric_rect (nodelet/nodelet)
    depth_rectify_depth (nodelet/nodelet)
    depth_registered_hw_metric_rect (nodelet/nodelet)
    depth_registered_metric (nodelet/nodelet)
    depth_registered_rectify_depth (nodelet/nodelet)
    depth_registered_sw_metric_rect (nodelet/nodelet)
    front_rectify_color (nodelet/nodelet)
    ir_rectify_ir (nodelet/nodelet)
    points_xyzrgb_hw_registered (nodelet/nodelet)
    points_xyzrgb_sw_registered (nodelet/nodelet)
    register_depth_front (nodelet/nodelet)
  /pepper_robot/pose/
    pose_controller (naoqi_pose/pose_controller.py)
    pose_manager (naoqi_pose/pose_manager.py)

ROS_MASTER_URI=http://localhost:11311

process[pepper_robot-1]: started with pid [27584]
process[pepper_robot/pose/pose_controller-2]: started with pid [27585]
process[pepper_robot/pose/pose_manager-3]: started with pid [27586]
process[pepper_robot/camera/camera_nodelet_manager-4]: started with pid [27587]
process[pepper_robot/camera/front_rectify_color-5]: started with pid [27588]
process[pepper_robot/camera/bottom_rectify_color-6]: started with pid [27589]
process[pepper_robot/camera/ir_rectify_ir-7]: started with pid [27595]
process[pepper_robot/camera/depth_rectify_depth-8]: started with pid [27601]
process[pepper_robot/camera/depth_metric_rect-9]: started with pid [27606]
process[pepper_robot/camera/depth_metric-10]: started with pid [27622]
[ INFO] [1657876438.490200961]: Initializing nodelet with 4 worker threads.
Receiving information about robot model
process[pepper_robot/camera/register_depth_front-11]: started with pid [27639]
process[pepper_robot/camera/points_xyzrgb_sw_registered-12]: started with pid [27647]
process[pepper_robot/camera/depth_registered_sw_metric_rect-13]: started with pid [27652]
process[pepper_robot/camera/depth_registered_rectify_depth-14]: started with pid [27654]
process[pepper_robot/camera/points_xyzrgb_hw_registered-15]: started with pid [27660]
process[pepper_robot/camera/depth_registered_hw_metric_rect-16]: started with pid [27671]
process[pepper_robot/camera/depth_registered_metric-17]: started with pid [27676]
process[naoqi_dashboard-18]: started with pid [27683]
process[tf_monitor-19]: started with pid [27689]
set prefix successfully to pepper_robot
process[naoqi_dashboard_aggregator-20]: started with pid [27691]
using ip address: 169.254.54.161 @ enx70886b8f1b7d
found a catkin prefix /home/ichikura/naoqi_ws/src/naoqi_driver/share/boot_config.json
load boot config from /home/ichikura/naoqi_ws/src/naoqi_driver/share/boot_config.json
process[play_audio_stream-21]: started with pid [27694]
process[list_up_ros_node-22]: started with pid [27700]
process[speaking_program_is_started_or_terminated-23]: started with pid [27702]
no camera information found for camera_source 3 and res: 1
found a catkin URDF /home/ichikura/naoqi_ws/src/naoqi_driver/share/urdf/pepper.urdf
RightBumperPressed
configuring by "/opt/ros/melodic/share/euslisp/jskeus/eus//lib/eusrt.l"
;; readmacro ;; object ;; packsym ;; common ;; constants ;; stream ;; string LeftBumperPressed
BackBumperPressed
;; loader ;; pprint ;; process ;; hashtab ROS-Driver-RightBumperPressed : Start
;; array ;; mathtran ;; eusdebug ;; eusforeign ;; extnum ;; coordinates ;; tty ;; history HandRightBackTouched
;; toplevel ;; trans HandRightLeftTouched
;; comp ;; builtins HandRightRightTouched
HandLeftBackTouched
;; par HandLeftLeftTouched
;; intersection ;; geoclasses HandLeftRightTouched
ROS-Driver-HandRightBackTouched : Start
;; geopack ;; geobody ;; primt ;; compose ;; polygon ;; viewing ;; viewport FrontTactilTouched
;; viewsurface ;; hid ;; shadow ;; bodyrel ;; dda MiddleTactilTouched
;; helpsub ;; eushelp RearTactilTouched
ROS-Driver-FrontTactilTouched : Start
;; xforeign ;; Xdecl ChestButtonPressed
ROS-Driver-ChestButtonPressed : Start
registered subscriber:	teleop
registered subscriber:	moveto
;; Xgraphics ;; Xcolor registered subscriber:	speech
nodehandle reset 
;; Xeus ;; Xevent ;; Xpanel ;; Xitem ;; Xtext ;; Xmenu ;; Xscroll ;; Xcanvas ;; Xtop ;; Xapplwin using master ip: http://169.254.54.161:11311
NOT going to re-register the converters
camera/bottom/image_raw is resetting

connected to Xserver DISPLAY=:0
X events are being asynchronously monitored.
;; pixword ;; RGBHLS ;; convolve ;; piximage ;; pbmfile ;; image_correlation ;; oglforeign ;; gldecl ;; glconst ;; glforeign ;; gluconst camera/bottom/image_raw reset
camera/depth/image_raw is resetting
;; gluforeign ;; glxconst ;; glxforeign ;; eglforeign ;; eglfunc ;; glutil ;; gltexture ;; glprim ;; gleus ;; glview ;; toiv-undefined ;; fstringdouble irtmath irtutil irtc irtgeoc irtgraph gnuplotlib ___time camera/depth/image_raw reset
/diagnostics is resetting
___pgsql /diagnostics reset
camera/front/image_raw is resetting
irtgeo euspqp pqp irtscene irtmodel irtdyna irtrobot irtsensor irtbvh irtcollada irtstl irtwrl irtpointcloud eusbullet bullet irtcollision irtx eusjpeg euspng png irtimage irtglrgb camera/front/image_raw reset
imu/base is resetting

;; extending gcstack 0x564e464de690[16374] --> 0x564e4696d490[32748] top=3d4b
imu/base reset
imu/torso is resetting
imu/torso reset
info is resetting
load robot description from file
info reset
camera/ir/image_raw is resetting
irtgl irtglc irtviewer 
EusLisp 9.29( 1.2.5) for Linux64 created on ip-10-0-1-68(Tue Mar 1 05:47:01 PST 2022)
roseus camera/ir/image_raw reset
/joint_states is resetting
/joint_states reset
laser is resetting
laser reset
odom is resetting
odom reset
sonar is resetting
sonar reset
teleop is resetting
teleop reset
moveto is resetting
moveto reset
speech is resetting
;; loading roseus("1.7.4") on euslisp((9.29 ip-10-0-1-68 Tue Mar 1 05:47:01 PST 2022  1.2.5))
speech reset
get_robot_config is resetting
eustf get_robot_config reset
set_language is resetting
set_language reset
get_language is resetting
get_language reset
fade leds service is resetting
fade leds service reset
reset leds service is resetting
reset leds service reset
play audio file is resetting
play audio file reset
set volume service is resetting
set volume service reset
get volume service is resetting
get volume service reset
[INFO] [1657876439.248961]: Connecting to NaoQi at 169.254.23.145:9559
[I] 1657876439.258420 27585 qimessaging.session: Session listener created on tcp://0.0.0.0:0
[I] 1657876439.258869 27585 qimessaging.transportserver: TransportServer will listen on: tcp://172.17.0.1:41547
[I] 1657876439.258899 27585 qimessaging.transportserver: TransportServer will listen on: tcp://169.254.54.161:41547
[I] 1657876439.258913 27585 qimessaging.transportserver: TransportServer will listen on: tcp://127.0.0.1:41547
[I] 1657876439.258927 27585 qimessaging.transportserver: TransportServer will listen on: tcp://192.168.97.189:41547
[W] 1657876439.258870 27748 qi.path.sdklayout: No Application was created, trying to deduce paths
naoqi_driver initialized
roseus_c_util [WARN] [1657876439.375726]: Collection LLeg not found on your robot.
[WARN] [1657876439.379809]: Collection RLeg not found on your robot.
[INFO] [1657876439.504274]: nao_controller initialized
[INFO] [1657876439.507663]: nao pose_controller running...
[WARN] [1657876441.630183]: stop_walk_srv not available, pose_manager will not stop the walker before executing a trajectory. This is normal if there is no nao_walker running.
RosPluginProvider.load(naoqi_dashboard/NAOqiDashboard) exception raised in __builtin__.__import__(naoqi_dashboard.frame, [NAOqiDashboard]):
Traceback (most recent call last):
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 80, in load
    attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
  File "/home/ichikura/naoqi_ws/devel/lib/python2.7/dist-packages/naoqi_dashboard/__init__.py", line 34, in <module>
    exec(__fh.read())
  File "<string>", line 1, in <module>
  File "/home/ichikura/naoqi_ws/src/naoqi_dashboard/src/naoqi_dashboard/frame.py", line 51, in <module>
    from .avahi import AvahiWidget
  File "/home/ichikura/naoqi_ws/src/naoqi_dashboard/src/naoqi_dashboard/avahi.py", line 34, in <module>
    import dbus, gobject, dbus.glib
ImportError: No module named gobject

PluginManager._load_plugin() could not load plugin "naoqi_dashboard/NAOqiDashboard":
Traceback (most recent call last):
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/plugin_handler.py", line 102, in load
    self._load()
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 55, in _load
    self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 72, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 72, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py", line 61, in load
    return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 72, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 90, in load
    raise e
ImportError: No module named gobject

================================================================================REQUIRED process [naoqi_dashboard-18] has died!
process has died [pid 27683, exit code 1, cmd /home/ichikura/naoqi_ws/src/naoqi_dashboard/scripts/naoqi_dashboard __name:=naoqi_dashboard __log:=/home/ichikura/.ros/log/10c4dfb4-040d-11ed-88cf-287fcf9948c3/naoqi_dashboard-18.log].
log file: /home/ichikura/.ros/log/10c4dfb4-040d-11ed-88cf-287fcf9948c3/naoqi_dashboard-18*.log
Initiating shutdown!
================================================================================
[speaking_program_is_started_or_terminated-23] killing on exit
[list_up_ros_node-22] killing on exit
[play_audio_stream-21] killing on exit
[tf_monitor-19] killing on exit
[naoqi_dashboard_aggregator-20] killing on exit
[naoqi_dashboard-18] killing on exit
[pepper_robot/camera/depth_registered_metric-17] killing on exit
[pepper_robot/camera/depth_registered_hw_metric_rect-16] killing on exit
[ WARN] [1657876442.759511886]: ros::roseus-sigint-handler 2
[pepper_robot/camera/points_xyzrgb_hw_registered-15] killing on exit
[pepper_robot/camera/depth_registered_rectify_depth-14] killing on exit
[pepper_robot/camera/depth_registered_sw_metric_rect-13] killing on exit
[pepper_robot/camera/points_xyzrgb_sw_registered-12] killing on exit
[pepper_robot/camera/register_depth_front-11] killing on exit
[pepper_robot/camera/depth_metric-10] killing on exit
[pepper_robot/camera/depth_metric_rect-9] killing on exit
[pepper_robot/camera/depth_rectify_depth-8] killing on exit
[pepper_robot/camera/ir_rectify_ir-7] killing on exit
[pepper_robot/camera/bottom_rectify_color-6] killing on exit
[pepper_robot/camera/front_rectify_color-5] killing on exit
[pepper_robot/camera/camera_nodelet_manager-4] killing on exit
[pepper_robot/pose/pose_manager-3] killing on exit
[pepper_robot/pose/pose_controller-2] killing on exit
[pepper_robot-1] killing on exit
[INFO] [1657876443.272336]: Stopping pose_controller
ROS-Driver-RightBumperPressed : Stop
ROS-Driver-ChestButtonPressed : Stop
ROS-Driver-HandRightBackTouched : Stop
ROS-Driver-FrontTactilTouched : Stop
[W] 1657876443.357170 27584 qitype.signal: disconnect: No subscription found for SignalLink 0.
[W] 1657876443.357170 naoqi driver is shutting down..
27609 qitype.signal: disconnect: No subscription found for SignalLink 13.
[INFO] [1657876443.369729]: pose_controller stopped
[INFO] [1657876444.005118]: nao pose_controller stopped.
shutting down processing monitor...
... shutting down processing monitor complete
done

@k-okada
Copy link
Owner

k-okada commented Jul 15, 2022

1から環境設定したら,やはり同じようなエラーがでて,
jsk-ros-pkg#1474 (comment)
と同じで以下の変更が必要でした.

src/naoqi_driver$ git diff
diff --git a/share/boot_config.json b/share/boot_config.json
index bb2d88f..cae51e5 100644
--- a/share/boot_config.json
+++ b/share/boot_config.json
@@ -72,7 +72,7 @@
     },
     "audio":
     {
-      "enabled"       : true
+      "enabled"       : false
     },
     "bumper":
     {
```
多分ドキュメントどおり環境を作ると
```
src$ wstool info
workspace: /tmp/iechikura/src

 Localname         S SCM Version (Spec)    UID  (Spec)  URI  (Spec) [http(s)://...]
 ---------         - --- --------------    -----------  ---------------------------
 pepper_robot        git master  (-)       efad3979b374 github.com/ros-naoqi/pepper_robot
 naoqi_driver        git kochigami-develop 98c0b678286a github.com/kochigami/naoqi_driver
 naoqi_dashboard     git kochigami-develop 116484fc41bf github.com/kochigami/naoqi_dashboard
 naoqi_bridge_msgs   git kochigami-develop d7417613690e github.com/kochigami/naoqi_bridge_msgs
 naoqi_bridge        git kochigami-develop c28b727e1e9b github.com/kochigami/naoqi_bridge
 nao_robot           git master  (-)       67476469a137 github.com/ros-naoqi/nao_robot
 nao_interaction     git master  (-)       f97ad12f3896 github.com/ros-naoqi/nao_interaction
 jsk_robot           git master            34f569a0490e github.com/jsk-ros-pkg/jsk_robot.git

```
となっていて, @a-ichikura  はこうなっているはずです.僕は少し古い状態なので
```
src$ wstool info
workspace: /home/k-okada/catkin_ws/ws_pepper/src

 Localname         S SCM Version (Spec)         UID  (Spec)                 URI  (Spec) [http(s)://...]
 ---------         - --- --------------         -----------                 ---------------------------
 pepper_robot        git master  (-)            efad3979b374                github.com/ros-naoqi/pepper_robot
 pepper_meshes       git master  (-)            e3bbf782b298                [email protected]:ros-naoqi/pepper_meshes.git
 naoqi_driver      C git kochigami-develop      d77dddea5ba8                github.com/kochigami/naoqi_driver
 naoqi_dashboard     git kochigami-develop      116484fc41bf                github.com/kochigami/naoqi_dashboard
 naoqi_bridge_msgs   git kochigami-develop      d7417613690e                github.com/kochigami/naoqi_bridge_msgs
 naoqi_bridge      M git kochigami-develop      57003d058d22                github.com/kochigami/naoqi_bridge
 nao_robot           git master  (-)            67476469a137                github.com/ros-naoqi/nao_robot
 nao_meshes          git master  (-)            c4daa9317c18                [email protected]:ros-naoqi/nao_meshes.git
 nao_interaction     git master  (-)            f97ad12f3896                github.com/ros-naoqi/nao_interaction
 libqicore-release   git melodic-devel  (-)     fa78dfa2b6ed                github.com/ros-naoqi/libqicore-release.git
 libqi-release       git melodic-devel  (-)     2771a10251d1                github.com/ros-naoqi/libqi-release.git
 jsk_robot         V git pepper_cross  (master) 3178fcbb697c (f4c28763a213) github.com/jsk-ros-pkg/jsk_robot.git

Also detected these repositories in the workspace, add using 'wstool scrape' or 'wstool set':

 Localname     SCM   URI  (Spec) [http(s)://...]
 ---------     ---   ---------------------------
 humanoid_msgs --git https://github.com/ahornung/humanoid_msgs
 jsk_roseus    --git [email protected]:jsk-ros-pkg/jsk_roseus.git
```
でした,今回のドキュメント通りにやっていなくて,動いている環境を持っている人がいたら,`wstool info` を教えてほしいです.

@a-ichikura
Copy link
Author

boot_config.jsonのaudioをfalseにしてから、

Traceback (most recent call last):
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 80, in load
    attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
  File "/home/ichikura/naoqi_ws/devel/lib/python2.7/dist-packages/naoqi_dashboard/__init__.py", line 34, in <module>
    exec(__fh.read())
  File "<string>", line 1, in <module>
  File "/home/ichikura/naoqi_ws/src/naoqi_dashboard/src/naoqi_dashboard/frame.py", line 51, in <module>
    from .avahi import AvahiWidget
  File "/home/ichikura/naoqi_ws/src/naoqi_dashboard/src/naoqi_dashboard/avahi.py", line 34, in <module>
    import dbus, gobject, dbus.glib
ImportError: No module named gobject

ここの部分が原因だったので、

~/naoqi_ws/src/naoqi_dashboard/src/naoqi_dashboard/avahi.py

の中身を

from gi.repository import GObject as gobject

に変更したら
NaOのときのようなダッシュボードが立ち上がりました。
ダッシュボードの中の
enable lifeやrestも正常に動いています。

@a-ichikura
Copy link
Author

@k-okada

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:98:d8:55:47  txqueuelen 0  (イーサネット)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s0f0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether f8:75:a4:4d:cd:3f  txqueuelen 1000  (イーサネット)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enx70886b8f1b7d: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.54.161  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::98db:c9e:8b70:8f50  prefixlen 64  scopeid 0x20<link>
        ether 70:88:6b:8f:1b:7d  txqueuelen 1000  (イーサネット)
        RX packets 5776873  bytes 5943565580 (5.9 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2401699  bytes 349822496 (349.8 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (ローカルループバック)
        RX packets 1587954  bytes 3698312700 (3.6 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1587954  bytes 3698312700 (3.6 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ifconfigを確認してから、
http://169.254.54.161:8000/rwt_app_chooser/
にアクセスしましたが、繋がらなかったです...

@k-okada
Copy link
Owner

k-okada commented Jul 16, 2022

説明不足でした,jsk_pepper_startup は jsk-ros-pkg のものを使っているかな? ros jsk_pepper_startup してからgit branch git remote -vで確認してもらいたいです,もしgit remote -vk-okada が出てこなければ,

roscd jsk_pepper_startup
git remote add -p k-okada https://github.com/k-okada/jsk_robot
git fetch --all
git checkout -b pepper_cross k-okada/pepper_cross

してから,もう一度roslaunch してみてください.

NODES
  /
    list_up_ros_node (jsk_pepper_startup/list_up_ros_node.py)
    naoqi_dashboard (naoqi_dashboard/naoqi_dashboard)
    naoqi_dashboard_aggregator (diagnostic_aggregator/aggr

のところでapp_managerという文字列が見えれば,成功していそう,という感じです.

@kochigami
Copy link
Collaborator

kochigami commented Jul 20, 2022

  • 1つ目

@kochigami お時間があるときに東風上さんが使われているpythonSDKのバージョンを教えていただけると幸いです。

(なんとなく全員で統一した方が良い気がしました。)

返信が遅れて申し訳ございません。
私は,jsk-ros-pkgの方のjsk_robotのREADMEに沿って環境構築しており,2.5.5.5を使っております。

  • 2つ目

kineticからmelodicに上げた際,@a-ichikura さんが指摘してくださっているように,naoqi_dashboard立ち上げ時にエラーが出ることを確認しました。対応しようと思います。=> jsk-ros-pkg#1542

  • 3つ目

立ち上げ時にAudioの問題が出ること
jsk-ros-pkgの方のREADMEに追記しようと思います: jsk-ros-pkg#1537

  • 4つ目

私もapp_chooserを試してみようと思います(明日)。

@kochigami
Copy link
Collaborator

kochigami commented Jul 21, 2022

app_chooserの使い方が分からず、もしアドバイス等ございましたらご教示ください。
ウェブページは表示されて (http://<自分のPCのIP>:8000/rwt_app_chooser/)、
ロボット追加もできるのですが、
タスクを選択の画面で何も出てこず、jsk_pepper_startup.launchの実行ログによるとアプリが読み込まれているみたいなので、ロボット追加の仕方が正しくないのかな・・・と思います。

環境

Ubuntu 18.04, ROS melodic

行ったこと

  • add cross-compile environment for pepper robot jsk-ros-pkg/jsk_robot#1528 のブランチに移動
  • .rosinstallでパッケージインストール(今の環境で大丈夫そうだったのでほとんどスキップしました)
  • rosdep install -y -r --from-paths src --ignore-src で rwt_app_chooserapp_managerがインストールされたことを確認
  • roslaunch jsk_pepper_startup jsk_pepper_startup.launch network_interface:=enp4s0 launch_joy:=false (ログは一番下)
  • http://<自分のPCのIP>:8000/rwt_app_chooser/からロボット追加(写真)
  • Robot Type: Pepper を選択, Robot name: Olive と入力、Robot URL: ws://<NAO_IP>:9090/ と入力
  • 追加したロボットのアイコンをクリックすると、Disconnected from master, Error occurred on ROS interfaceと出てきてうまくいってなさそうです。
roslaunch jsk_pepper_startup jsk_pepper_startup.launch network_interface:=enp4s0 launch_joy:=false
... logging to /home/kochigami/.ros/log/6771756a-08c8-11ed-859d-0c9d921fe708/roslaunch-kochigami-desktop-16466.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.97.48:34115/

SUMMARY
========

CLEAR PARAMETERS
 * /naoqi_dashboard_aggregator/

PARAMETERS
 * /app_manager/interface_master: http://localhost:...
 * /naoqi_dashboard_aggregator/analyzers/joystick/discard_stale: True
 * /naoqi_dashboard_aggregator/analyzers/joystick/find_and_remove_prefix: joy_node
 * /naoqi_dashboard_aggregator/analyzers/joystick/path: Joystick
 * /naoqi_dashboard_aggregator/analyzers/joystick/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/find_and_remove_prefix: naoqi_driver_comp...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/path: Computer
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/find_and_remove_prefix: naoqi_driver_joints:
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/path: Joints
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/find_and_remove_prefix: naoqi_driver_batt...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/path: Power System
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/path: NAOqi
 * /naoqi_dashboard_aggregator/analyzers/naoqi/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/tf/find_and_remove_prefix: tf_monitor:
 * /naoqi_dashboard_aggregator/analyzers/tf/path: TF
 * /naoqi_dashboard_aggregator/analyzers/tf/type: diagnostic_aggreg...
 * /pepper_robot/camera/camera_nodelet_manager/num_worker_threads: 4
 * /pepper_robot/camera/depth_rectify_depth/interpolation: 0
 * /pepper_robot/camera/depth_registered_rectify_depth/interpolation: 0
 * /pepper_robot/pose/pose_manager/poses/init/joint_names: ['Body']
 * /pepper_robot/pose/pose_manager/poses/init/positions: [0.0, 0.0, 1.39, ...
 * /pepper_robot/pose/pose_manager/poses/init/time_from_start: 1.5
 * /pepper_robot/pose/pose_manager/poses/zero/joint_names: ['Body']
 * /pepper_robot/pose/pose_manager/poses/zero/positions: [0.0, 0.0, 0.0, 0...
 * /pepper_robot/pose/pose_manager/poses/zero/time_from_start: 1.5
 * /pepper_robot/pose/pose_manager/xap: /home/kochigami/c...
 * /robot/name: dhcp16
 * /robot/type: pepper
 * /rosapi/params_glob: [*]
 * /rosapi/services_glob: [*]
 * /rosapi/topics_glob: [*]
 * /rosbridge_websocket/address: 0.0.0.0
 * /rosbridge_websocket/authenticate: False
 * /rosbridge_websocket/bson_only_mode: False
 * /rosbridge_websocket/delay_between_messages: 0
 * /rosbridge_websocket/fragment_timeout: 600
 * /rosbridge_websocket/max_message_size: None
 * /rosbridge_websocket/params_glob: [*]
 * /rosbridge_websocket/port: 9090
 * /rosbridge_websocket/retry_startup_delay: 5
 * /rosbridge_websocket/services_glob: [*]
 * /rosbridge_websocket/topics_glob: [*]
 * /rosbridge_websocket/unregister_timeout: 10
 * /rosbridge_websocket/use_compression: False
 * /rosbridge_websocket/websocket_external_port: None
 * /rosbridge_websocket/websocket_ping_interval: 0
 * /rosbridge_websocket/websocket_ping_timeout: 30
 * /rosdistro: melodic
 * /rosversion: 1.14.13

NODES
  /
    app_manager (app_manager/app_manager)
    appmaster (app_manager/appmaster)
    list_up_ros_node (jsk_pepper_startup/list_up_ros_node.py)
    naoqi_dashboard (naoqi_dashboard/naoqi_dashboard)
    naoqi_dashboard_aggregator (diagnostic_aggregator/aggregator_node)
    pepper_robot (naoqi_driver/naoqi_driver_node)
    play_audio_stream (jsk_pepper_startup/play_audio_stream.py)
    rosapi (rosapi/rosapi_node)
    rosbridge_websocket (rosbridge_server/rosbridge_websocket)
    roswww (roswww/webserver.py)
    speaking_program_is_started_or_terminated (roseus/roseus)
    tf_monitor (diagnostic_common_diagnostics/tf_monitor.py)
  /pepper_robot/camera/
    bottom_rectify_color (nodelet/nodelet)
    camera_nodelet_manager (nodelet/nodelet)
    depth_metric (nodelet/nodelet)
    depth_metric_rect (nodelet/nodelet)
    depth_rectify_depth (nodelet/nodelet)
    depth_registered_hw_metric_rect (nodelet/nodelet)
    depth_registered_metric (nodelet/nodelet)
    depth_registered_rectify_depth (nodelet/nodelet)
    depth_registered_sw_metric_rect (nodelet/nodelet)
    front_rectify_color (nodelet/nodelet)
    ir_rectify_ir (nodelet/nodelet)
    points_xyzrgb_hw_registered (nodelet/nodelet)
    points_xyzrgb_sw_registered (nodelet/nodelet)
    register_depth_front (nodelet/nodelet)
  /pepper_robot/pose/
    pose_controller (naoqi_pose/pose_controller.py)
    pose_manager (naoqi_pose/pose_manager.py)

auto-starting new master
process[master]: started with pid [16482]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 6771756a-08c8-11ed-859d-0c9d921fe708
process[rosout-1]: started with pid [16493]
started core service [/rosout]
process[pepper_robot-2]: started with pid [16501]
process[pepper_robot/pose/pose_controller-3]: started with pid [16502]
process[pepper_robot/pose/pose_manager-4]: started with pid [16503]
process[pepper_robot/camera/camera_nodelet_manager-5]: started with pid [16504]
process[pepper_robot/camera/front_rectify_color-6]: started with pid [16505]
process[pepper_robot/camera/bottom_rectify_color-7]: started with pid [16507]
process[pepper_robot/camera/ir_rectify_ir-8]: started with pid [16533]
Receiving information about robot model
process[pepper_robot/camera/depth_rectify_depth-9]: started with pid [16541]
[ INFO] [1658389235.359913343]: Initializing nodelet with 4 worker threads.
process[pepper_robot/camera/depth_metric_rect-10]: started with pid [16551]
Robot detected: Pepper B2C
process[pepper_robot/camera/depth_metric-11]: started with pid [16562]
process[pepper_robot/camera/register_depth_front-12]: started with pid [16569]
process[pepper_robot/camera/points_xyzrgb_sw_registered-13]: started with pid [16580]
process[pepper_robot/camera/depth_registered_sw_metric_rect-14]: started with pid [16583]
process[pepper_robot/camera/depth_registered_rectify_depth-15]: started with pid [16588]
process[pepper_robot/camera/points_xyzrgb_hw_registered-16]: started with pid [16596]
process[pepper_robot/camera/depth_registered_hw_metric_rect-17]: started with pid [16608]
process[pepper_robot/camera/depth_registered_metric-18]: started with pid [16611]
process[naoqi_dashboard-19]: started with pid [16616]
process[tf_monitor-20]: started with pid [16621]
set prefix successfully to pepper_robot
using ip address: 192.168.97.48 @ enp4s0
found a catkin prefix /home/kochigami/catkin_ws/src/naoqi_driver/share/boot_config.json
load boot config from /home/kochigami/catkin_ws/src/naoqi_driver/share/boot_config.json
process[naoqi_dashboard_aggregator-21]: started with pid [16623]
process[play_audio_stream-22]: started with pid [16624]
process[list_up_ros_node-23]: started with pid [16630]
process[speaking_program_is_started_or_terminated-24]: started with pid [16633]
process[appmaster-25]: started with pid [16635]
process[app_manager-26]: started with pid [16637]
process[rosbridge_websocket-27]: started with pid [16638]
configuring by "/opt/ros/melodic/share/euslisp/jskeus/eus//lib/eusrt.l"
;; readmacro ;; object ;; packsym ;; common ;; constants ;; stream ;; string ;; loader ;; pprint ;; process ;; hashtab ;; array ;; mathtran ;; eusdebug ;; eusforeign ;; extnum ;; coordinates ;; tty ;; history ;; toplevel ;; trans ;; comp ;; builtins ;; par ;; intersection ;; geoclasses process[rosapi-28]: started with pid [16641]
;; geopack ;; geobody ;; primt ;; compose ;; polygon ;; viewing ;; viewport ;; viewsurface ;; hid ;; shadow ;; bodyrel ;; dda ;; helpsub ;; eushelp ;; xforeign ;; Xdecl process[roswww-29]: started with pid [16644]
;; Xgraphics ;; Xcolor ;; Xeus ;; Xevent ;; Xpanel ;; Xitem ;; Xtext ;; Xmenu ;; Xscroll ;; Xcanvas ;; Xtop ;; Xapplwin 
connected to Xserver DISPLAY=:1
X events are being asynchronously monitored.
;; pixword ;; RGBHLS ;; convolve ;; piximage ;; pbmfile ;; image_correlation ;; oglforeign ;; gldecl ;; glconst ;; glforeign ;; gluconst ;; gluforeign ;; glxconst ;; glxforeign ;; eglforeign ;; eglfunc ;; glutil ;; gltexture ;; glprim ;; gleus ;; glview ;; toiv-undefined ;; fstringdouble irtmath irtutil irtc irtgeoc irtgraph gnuplotlib ___time ___pgsql irtgeo euspqp pqp irtscene irtmodel irtdyna irtrobot irtsensor irtbvh irtcollada irtstl irtwrl irtpointcloud eusbullet bullet irtcollision irtx eusjpeg euspng png irtimage irtglrgb 
;; extending gcstack 0x563223770690[16374] --> 0x563223bf6910[32748] top=3d4b
irtgl irtglc irtviewer 
EusLisp 9.29( 1.2.5) for Linux64 created on ip-10-0-1-68(Tue Mar 1 05:47:01 PST 2022)
roseus [INFO] [1658389235.751586]: Connecting to NaoQi at 192.168.97.16:9559
[I] 1658389235.756188 16502 qimessaging.session: Session listener created on tcp://0.0.0.0:0
[W] 1658389235.756601 16673 qi.path.sdklayout: No Application was created, trying to deduce paths
[I] 1658389235.756603 16502 qimessaging.transportserver: TransportServer will listen on: tcp://192.168.97.48:41815
[I] 1658389235.756650 16502 qimessaging.transportserver: TransportServer will listen on: tcp://127.0.0.1:41815
;; loading roseus("1.7.4") on euslisp((9.29 ip-10-0-1-68 Tue Mar 1 05:47:01 PST 2022  1.2.5))
eustf found a catkin URDF /home/kochigami/catkin_ws/src/naoqi_driver/share/urdf/pepper.urdf
[WARN] [1658389235.842040]: Collection LLeg not found on your robot.
RightBumperPressed
[WARN] [1658389235.846847]: Collection RLeg not found on your robot.
LeftBumperPressed
BackBumperPressed
ROS-Driver-RightBumperPressed : Start
HandRightBackTouched
HandRightLeftTouched
HandRightRightTouched
HandLeftBackTouched
HandLeftLeftTouched
HandLeftRightTouched
ROS-Driver-HandRightBackTouched : Start
FrontTactilTouched
MiddleTactilTouched
RearTactilTouched
ROS-Driver-FrontTactilTouched : Start
registered subscriber:	teleop
registered subscriber:	moveto
roseus_c_util registered subscriber:	speech
nodehandle reset 
using master ip: http://192.168.97.48:11311
NOT going to re-register the converters
camera/bottom/image_raw is resetting
[INFO] [1658389235.941626]: nao_controller initialized
[INFO] [1658389235.944142]: nao pose_controller running...
camera/bottom/image_raw reset
camera/depth/image_raw is resetting
2022-07-21 16:40:35+0900 [-] Log opened.
camera/depth/image_raw reset
/diagnostics is resetting
/diagnostics reset
camera/front/image_raw is resetting
camera/front/image_raw reset
imu/base is resetting
imu/base reset
imu/torso is resetting
imu/torso reset
info is resetting
2022-07-21 16:40:36+0900 [-] registered capabilities (classes):
2022-07-21 16:40:36+0900 [-]  - rosbridge_library.capabilities.call_service.CallService
2022-07-21 16:40:36+0900 [-]  - rosbridge_library.capabilities.advertise.Advertise
2022-07-21 16:40:36+0900 [-]  - rosbridge_library.capabilities.publish.Publish
2022-07-21 16:40:36+0900 [-]  - rosbridge_library.capabilities.subscribe.Subscribe
2022-07-21 16:40:36+0900 [-]  - <class 'rosbridge_library.capabilities.defragmentation.Defragment'>
2022-07-21 16:40:36+0900 [-]  - rosbridge_library.capabilities.advertise_service.AdvertiseService
2022-07-21 16:40:36+0900 [-]  - rosbridge_library.capabilities.service_response.ServiceResponse
2022-07-21 16:40:36+0900 [-]  - rosbridge_library.capabilities.unadvertise_service.UnadvertiseService
load robot description from file
info reset
camera/ir/image_raw is resetting
2022-07-21 16:40:36,106 - roswww - INFO - roswww : Configure webserver with cache:True, basic:False
[INFO] [1658389236.106854]: Rosapi started
camera/ir/image_raw reset
/joint_states is resetting
2022-07-21 16:40:36,109 - roswww - INFO - roswww : # of packages : 546
2022-07-21 16:40:36,109 - roswww - INFO - roswww : Weg Page root : www
/joint_states reset
laser is resetting
laser reset
odom is resetting
odom reset
sonar is resetting
sonar reset
teleop is resetting
teleop reset
moveto is resetting
moveto reset
speech is resetting
speech reset
get_robot_config is resetting
get_robot_config reset
set_language is resetting
set_language reset
get_language is resetting
get_language reset
naoqi_driver initialized
2022-07-21 16:40:36+0900 [-] WebSocketServerFactory starting on 9090
2022-07-21 16:40:36+0900 [-] Starting factory <autobahn.twisted.websocket.WebSocketServerFactory object at 0x7fcdd37e2b10>
2022-07-21 16:40:36+0900 [-] [INFO] [1658389236.220570]: Rosbridge WebSocket server started at ws://0.0.0.0:9090
2022-07-21 16:40:36,227 - roswww - INFO - roswww : Initialised
2022-07-21 16:40:36,228 - roswww - INFO - roswww : Attempting to start webserver on port 8000
2022-07-21 16:40:36,228 - roswww - INFO - roswww : Webserver successfully started on port 8000
[INFO] [1658389237.127646]: Loading from plugin definitions
[INFO] [1658389237.130619]: Using apps for platform 'pepper'
[INFO] [1658389237.133560]: Starting app manager for dhcp16
[INFO] [1658389237.140189]: Waiting for foreign master [http://localhost:11313] to come up...
[INFO] [1658389237.168573]: Foreign master is available
[INFO] [1658389237.208613]: Registering (/dhcp16/app_list,http://192.168.97.48:39621/) on master http://localhost:11313
[INFO] [1658389237.213910]: Registering (/dhcp16/application/app_status,http://192.168.97.48:39621/) on master http://localhost:11313
[INFO] [1658389237.220715]: Registering service (/dhcp16/list_apps,rosrpc://192.168.97.48:43971) on master http://localhost:11313
[INFO] [1658389237.225743]: Registering service (/dhcp16/start_app,rosrpc://192.168.97.48:43971) on master http://localhost:11313
[INFO] [1658389237.231543]: Registering service (/dhcp16/stop_app,rosrpc://192.168.97.48:43971) on master http://localhost:11313
[INFO] [1658389237.675000]: 1 apps found in /home/kochigami/catkin_ws/src/jsk_robot/jsk_naoqi_robot/jsk_pepper_startup/apps/pepper.installed
[WARN] [1658389238.017362]: stop_walk_srv not available, pose_manager will not stop the walker before executing a trajectory. This is normal if there is no nao_walker running.
[INFO] [1658389238.572756]: 2 apps found in /home/kochigami/catkin_ws/src/jsk_robot/jsk_robot_common/jsk_robot_startup/apps/robot_apps.installed
[INFO] [1658389245.203050]: 15 apps found in /home/kochigami/catkin_ws/src/jsk_robot/jsk_fetch_robot/jsk_fetch_startup/apps/fetch_apps.installed
[INFO] [1658389246.525641]: 3 apps found in /home/kochigami/catkin_ws/src/jsk_robot/jsk_pr2_robot/jsk_pr2_startup/apps/pr2_apps.installed

rwt_app_chooser

@kochigami
Copy link
Collaborator

  • jsk_pepper_startup.launchを手元のパソコンで立ち上げる場合、rwt_app_chooserで登録するのはNAO_IPではなく手元のパソコンのIP

  • meetingアプリを実行すると、色々エラーが出てくるかも
    -- peppereusパッケージをビルドするとpepper-simple.lがつくられる
    -- roseus_smachがないのは jsk_pepper_startup/package.xmlに追加

  • rosrun smach_viewer smach_viewer.pyで状態遷移図が出てくる

  • 新しくappを追加するときは、
    jsk_pepper_startup/package.xmlの中に以下を追加すると、ウェブページにアイコンが出てくる

<export>
    <app_manager app_dir="${prefix}/apps"/>
  </export>
  • 作ったプログラムをappにするとき、アイコンの絵にこだわるとよい
  • 作ったプログラムをappにするとき、smachで書くとよい
  • smachで書くとき、descriptionの中身を考えるとよい(それがメールに送られるようになる予定)
  • 作ったプログラムをappにするとき、app終了時にロボットが例えばリセットポーズを取るようにするなど、気をつけるとよい

@MiyabiTane
Copy link

Pepperの環境構築で詰まった部分があったので、READMEに追記しました

環境:Ubuntu18.04, ros melodic

東風上さんに教えていただくまでnetwork_interface:=enp0s31f6を指定しなければいけないことに気づかず、引数をつけずに試していたためきちんと問題の切り分けができていませんでしたが、結論から言うと~/catkin_ws/src/naoqi_driver/share/boot_config.jsonaudiofalseにする必要がありました。
また、jsk-ros-pkg#1542
を参照し、sudo apt install python-gobject-2も行いましたが、goobjectがエラーの原因であったかどうかは確かではないです

行ったこと:

  1. README通りにセットアップを行うと、launchファイルを立ち上げた際にpepper_robotがないというエラーが出てすぐに落ちる

  2. wstool update pepper_robotしてからcatkin buildを行い、launchファイルを立ち上げると以下のようなエラーが出て落ちる(しかし、このときは引数を指定していなかったため、落ちて当然でした...)

 Error in future on destruction: 'Connect error: 113: No route to host' - continuing stack unwinding...
terminate called after throwing an instance of 'qi::FutureUserException'
[ERROR] [1659788102.951450]: Could not create Proxy to "ALMotion". 
Exception message:
	ALBroker::createBroker
	Cannot connect to tcp://169.254.144.119:9559
  what():  Connect error: 113: No route to host
[INFO] [1659788102.958071]: Stopping pose_controller
[INFO] [1659788102.959050]: pose_controller stopped
================================================================================REQUIRED process [pepper_robot-2] has died!
process has died [pid 14404, exit code -6, cmd /home/leus/catkin_ws/devel/lib/naoqi_driver/naoqi_driver_node --qi-url=tcp://169.254.144.119:9559 --roscore_ip=169.254.11.82 --network_interface=eth0 --namespace=pepper_robot __name:=pepper_robot __log:=/home/leus/.ros/log/60dd28dc-1581-11ed-a6ec-f875a4b60e3f/pepper_robot-2.log].
log file: /home/leus/.ros/log/60dd28dc-1581-11ed-a6ec-f875a4b60e3f/pepper_robot-2*.log
Initiating shutdown!
================================================================================
  1. 大元からチェックを行う。 roslaunch naoqi_driver naoqi_driver.launch network_interface:=enp0s31f6するとエラーが起きた
... logging to /home/leus/.ros/log/f42d3294-1581-11ed-a6ec-f875a4b60e3f/roslaunch-leus-ThinkPad-T490-16026.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://169.254.11.82:37191/

SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.13

NODES
  /
    naoqi_driver (naoqi_driver/naoqi_driver_node)

auto-starting new master
process[master]: started with pid [16036]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to f42d3294-1581-11ed-a6ec-f875a4b60e3f
process[rosout-1]: started with pid [16047]
started core service [/rosout]
process[naoqi_driver-2]: started with pid [16054]
Receiving information about robot model
Robot detected: Pepper B2C
set prefix successfully to naoqi_driver
using ip address: 127.0.0.1 @ enp0s31f6
found a catkin prefix /home/leus/catkin_ws/src/naoqi_driver/share/boot_config.json
load boot config from /home/leus/catkin_ws/src/naoqi_driver/share/boot_config.json
found a catkin URDF /home/leus/catkin_ws/src/naoqi_driver/share/urdf/pepper.urdf
terminate called after throwing an instance of 'qi::FutureUserException'
  what():  	ALProxy::ALProxy
	Can't find service: ROS-Driver-Audio
================================================================================REQUIRED process [naoqi_driver-2] has died!
process has died [pid 16054, exit code -6, cmd /home/leus/catkin_ws/devel/lib/naoqi_driver/naoqi_driver_node --qi-url=tcp://169.254.190.187:9559 --roscore_ip=127.0.0.1 --network_interface=enp0s31f6 --namespace=naoqi_driver __name:=naoqi_driver __log:=/home/leus/.ros/log/f42d3294-1581-11ed-a6ec-f875a4b60e3f/naoqi_driver-2.log].
log file: /home/leus/.ros/log/f42d3294-1581-11ed-a6ec-f875a4b60e3f/naoqi_driver-2*.log
Initiating shutdown!
================================================================================
[naoqi_driver-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
  1. ~/catkin_ws/src/naoqi_driver/share/boot_config.jsonaudiofalseにし、もう一度roslaunch naoqi_driver naoqi_driver.launch network_interface:=enp0s31f6すると立ち上げることができた

  2. 次にroslaunch pepper_bringup pepper_full.launch network_interface:=enp0s31f6すると、こちらも問題なく立ち上がった

  3. 最後に、もう一度roslaunch jsk_pepper_startup jsk_pepper_startup.launch network_interface:=enp0s31f6すると問題なく立ち上げることができた

@MiyabiTane
Copy link

度々すみません
jsk_pepper_startup.launchは立ち上がったのですが、pepper-interface.lをたちあげることができませんでした

peppereus/pepper.lというファイルは存在せず、catkin build peppereusし直しても生成されていないようなのですが、このファイルはどこに存在するのでしょうか...??
https://github.com/jsk-ros-pkg/jsk_robot/blob/master/jsk_naoqi_robot/peppereus/pepper-interface.l#L3

@k-okada
Copy link
Owner

k-okada commented Aug 7, 2022 via email

@MiyabiTane
Copy link

MiyabiTane commented Aug 7, 2022

@k-okada すでにインストールされていて、もう一度インストールし直してビルドしましたが生成されませんでした
私の不手際で何かが足りていないのかもしれません、すみません

leus@leus-ThinkPad-T490:~/catkin_ws/src/jsk_robot/jsk_naoqi_robot/peppereus$ sudo apt search ros-melodic-pepper-mesh
ソート中... 完了
全文検索... 完了  
ros-melodic-pepper-meshes/bionic,now 0.2.4-3bionic.20201017.230657 amd64 [インストール済み]
  meshes for the Aldebaran Robotics Pepper

leus@leus-ThinkPad-T490:~/catkin_ws/src/jsk_robot/jsk_naoqi_robot/peppereus$ sudo apt-get install ros-melodic-pepper-meshes
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
ros-melodic-pepper-meshes はすでに最新バージョン (0.2.4-3bionic.20201017.230657) です。
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  bridge-utils linux-hwe-5.4-headers-5.4.0-42 ubuntu-fan
これを削除するには 'sudo apt autoremove' を利用してください。
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 87 個。
leus@leus-ThinkPad-T490:~/catkin_ws/src/jsk_robot/jsk_naoqi_robot/peppereus$ cd ~/catkin_ws/
leus@leus-ThinkPad-T490:~/catkin_ws$ catkin b peppereus
==> Expanding alias 'b' from 'catkin b peppereus' to 'catkin build peppereus'
---------------------------------------------------------
Profile:                     default
Extending:          [cached] /opt/ros/melodic
Workspace:                   /home/leus/catkin_ws
---------------------------------------------------------
Build Space:        [exists] /home/leus/catkin_ws/build
Devel Space:        [exists] /home/leus/catkin_ws/devel
Install Space:      [unused] /home/leus/catkin_ws/install
Log Space:          [exists] /home/leus/catkin_ws/logs
Source Space:       [exists] /home/leus/catkin_ws/src
DESTDIR:            [unused] None
---------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
---------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
---------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
---------------------------------------------------------
Workspace configuration appears valid.
---------------------------------------------------------
[build] Found '76' packages in 0.0 seconds.                                    
[build] Package table is up to date.                                           
Starting  >>> nao_interaction_msgs                                             
Starting  >>> naoqi_bridge_msgs                                                
Starting  >>> pepper_description                                               
Finished  <<< pepper_description                  [ 0.1 seconds ]              
Finished  <<< nao_interaction_msgs                [ 0.5 seconds ]              
Finished  <<< naoqi_bridge_msgs                   [ 1.7 seconds ]              
Starting  >>> naoqi_driver                                                     
Starting  >>> naoqi_driver_py                                                  
Starting  >>> naoqi_pose                                                       
Starting  >>> naoqieus                                                         
Finished  <<< naoqieus                            [ 0.1 seconds ]              
Finished  <<< naoqi_pose                          [ 0.2 seconds ]              
Finished  <<< naoqi_driver_py                     [ 0.2 seconds ]              
Starting  >>> naoqi_sensors_py                                                 
Finished  <<< naoqi_driver                        [ 0.5 seconds ]              
Finished  <<< naoqi_sensors_py                    [ 0.1 seconds ]              
Starting  >>> pepper_sensors_py                                                
Finished  <<< pepper_sensors_py                   [ 0.1 seconds ]              
Starting  >>> pepper_bringup                                                   
Finished  <<< pepper_bringup                      [ 0.1 seconds ]              
Starting  >>> peppereus                                                        
Finished  <<< peppereus                           [ 0.1 seconds ]              
[build] Summary: All 11 packages succeeded!                                    
[build]   Ignored:   65 packages were skipped or are blacklisted.              
[build]   Warnings:  None.                                                     
[build]   Abandoned: None.                                                     
[build]   Failed:    None.                                                     
[build] Runtime: 2.8 seconds total.                                            
leus@leus-ThinkPad-T490:~/catkin_ws$ roscd peppereus/
leus@leus-ThinkPad-T490:~/catkin_ws/src/jsk_robot/jsk_naoqi_robot/peppereus$ ls
CHANGELOG.rst   README.md  package.xml         pepper.yaml
CMakeLists.txt  doc        pepper-interface.l  test

@MiyabiTane
Copy link

根本的な解決方法ではないと思うのですが、
CMeke.txtのAND CATKIN_ENABLE_TESTINGをコメントアウトしてビルドしたところ、ファイルが生成されました、ひとまずこれで先に進もうと思います
休日にありがとうございました
https://github.com/jsk-ros-pkg/jsk_robot/blob/master/jsk_naoqi_robot/peppereus/CMakeLists.txt#L19

@k-okada
Copy link
Owner

k-okada commented Aug 7, 2022 via email

@k-okada
Copy link
Owner

k-okada commented Aug 7, 2022 via email

@MiyabiTane
Copy link

生成されたpepper.lを一度よけてAND CATKIN_ENABLE_TESTINGを元に戻してもう一回コンパイルしたところ、pepper.lが生成されました!ありがとうございます

@MiyabiTane
Copy link

MiyabiTane commented Aug 7, 2022

eusからロボットを動かせるようになったのですが、センサー関連のトピックがサブスクライブされないという問題が起こりました

roslaunch naoqi_driver naoqi_driver.launch

して、launchは正常に動作しますが、

rostopic echo /naoqi_driver/hand_touch

しても何も帰ってこず、Ctl+Cすると最後に以下のログが出ます

^C[naoqi_driver-2] killing on exit
ROS-Driver-RightBumperPressed : Stop
ROS-Driver-ChestButtonPressed : Stop
terminate called after throwing an instance of 'qi::FutureUserException'
  what():  	ALMemory::UnsubscribeToMicroEvent
	ROS-Driver-HandRightBackTouched is not subscribed to HandLeftBackTouched
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

どこを触られたのかは認識しているようで、バンパーを触られた場合は以下のようなログになります

naoqi_driver initialized
^C[naoqi_driver-2] killing on exit
terminate called after throwing an instance of 'qi::FutureUserException'
  what():  	ALMemory::UnsubscribeToMicroEvent
	ROS-Driver-RightBumperPressed is not subscribed to LeftBumperPressed
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

@k-okada
Copy link
Owner

k-okada commented Aug 7, 2022

rostopic info /naoqi_driver/hand_touch
で確認して、publisher とか subscriberのホスト名が正しいか?ホスト名ならrossetipしてから作業するとipアドレスになるので間違いがないというのが一般論ですが、
pepperの場合はnaoqi_driver.launchは一生に一回だけ、が良い気がしていて、一回pepper自体をリブートして、自分のマシンのroscoreも落ちていることを確認してからnaoqi_driver.launchとかjsk_pepper_startup.launch を立ち上げて、あとは、それはいじらず、rostopic echoしてみて下さい

@MiyabiTane
Copy link

Pepper自体をリブートしてもう一度試しましたが同じ結果でした...

@k-okada
Copy link
Owner

k-okada commented Aug 7, 2022 via email

@MiyabiTane
Copy link

他のトピックは正しく出ているので、おそらくあっていると思います
東風上さんはこの症状に出会ったことがないそうです

ありがとうございます!

@k-okada
Copy link
Owner

k-okada commented Aug 8, 2022

正攻法ではないのであれなんだけど,
https://github.com/k-okada/nao_robot/blob/support_hand/nao_apps/nodes/nao_tactile.py
を使う方法で,一応同じことはできそうです.
1) nao_robotのリポジトリを[email protected]:k-okada/nao_robot.git support_hand リポジトリ/ブランチに変更
2)jsk_pepper_startup で以下の変更をいれる.

diff --git a/jsk_naoqi_robot/jsk_pepper_startup/launch/jsk_pepper_startup.launch b/jsk_naoqi_robot/jsk_pepper_startup/launch/jsk_pepper_startup.launch
index 34a6f3fe..b749efdc 100644
--- a/jsk_naoqi_robot/jsk_pepper_startup/launch/jsk_pepper_startup.launch
+++ b/jsk_naoqi_robot/jsk_pepper_startup/launch/jsk_pepper_startup.launch
@@ -15,6 +15,10 @@
     <arg name="network_interface" value="$(arg network_interface)"/>
   </include>
 
+  <include file="$(find nao_apps)/launch/tactile.launch"
+           ns="pepper_robot" >
+    <arg name="nao_ip" value="$(arg nao_ip)"/>
+  </include>
   <node pkg="jsk_pepper_startup" name="take_wakeup_pose" type="take_wakeup_pose.py" if="$(arg autonomous_wakeup)" />
 
   <!-- <include file="$(find turtlebot_teleop)launch/keyboard_teleop.launch" /> -->

もともとのプログラムは頭のトピックだけを出すようになっていて,手も出すように変更したので,しょうもないタイポとか見間違いとかしている可能性があるので十二分に注意してみてください.
ros-naoqi/nao_robot#47

@MiyabiTane
Copy link

帰宅してしまい、実機が手元にないため後日試します
早急に対応していただいたのにすみません...ありがとうございます

@MiyabiTane
Copy link

遅くなってしまい、すみません

岡田先生が試してくださった方法で、Ubuntu18でハンドのセンサを使ったプログラムを動かすことができました、ありがとうございました!
また、/pepper_robot/bumper, /pepper_robot/head_touchのトピックも出ていることが確認できました

1) nao_robotのリポジトリを[email protected]:k-okada/nao_robot.git support_hand リポジトリ/ブランチに変更
2)jsk_pepper_startup で以下の変更をいれる.

@a-ichikura
Copy link
Author

a-ichikura commented Oct 11, 2022 via email

@k-okada
Copy link
Owner

k-okada commented Oct 13, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants