stevenjj / openpose_ros

A ros wrapper for the CMU openpose library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to call service detect_poses_3d

senguptaa opened this issue · comments

I finally got it to install using an older version of openpose. When I connect my kinectv2 and follow your instructions - I get the following error:

[ERROR] [1555425187.302265847]: Failed to call service detect_poses_3d
[ERROR] [1555425187.302320617]: Did you remap the service and client names?
[ERROR] [1555425187.302345731]: This node expects a service called skeleton_2d_detector in which a launch file should have handled the remapping

This is after roslaunch skeleton_extract_3d openpose_skeleton_extract.launch

Any thoughts?

It might be helpful to list the exact commands you send.

I would think the likely culprit are params related such as topic names, width and height of the camera and net input, etc.

Also, a similar issue has occurred before: #6

Thanks, I did look at #6 to no avail.

I first launch the kinect_bridge node using:
roslaunch kinect2_bridge kinect2_bridge.launch
rosrun kinect2_viewer kinect2_viewer

I verify the rostopics that could be subscribed to using rostopic list
/kinect2/bond
/kinect2/hd/camera_info
/kinect2/hd/image_color
/kinect2/hd/image_color/compressed
/kinect2/hd/image_color_rect
/kinect2/hd/image_color_rect/compressed
/kinect2/hd/image_depth_rect
/kinect2/hd/image_depth_rect/compressed
/kinect2/hd/image_mono
/kinect2/hd/image_mono/compressed
/kinect2/hd/image_mono_rect
/kinect2/hd/image_mono_rect/compressed
/kinect2/hd/points
/kinect2/qhd/camera_info
/kinect2/qhd/image_color
/kinect2/qhd/image_color/compressed
/kinect2/qhd/image_color_rect
/kinect2/qhd/image_color_rect/compressed
/kinect2/qhd/image_depth_rect
/kinect2/qhd/image_depth_rect/compressed
/kinect2/qhd/image_mono
/kinect2/qhd/image_mono/compressed
/kinect2/qhd/image_mono_rect
/kinect2/qhd/image_mono_rect/compressed
/kinect2/qhd/points
/kinect2/sd/camera_info
/kinect2/sd/image_color_rect
/kinect2/sd/image_color_rect/compressed
/kinect2/sd/image_depth
/kinect2/sd/image_depth/compressed
/kinect2/sd/image_depth_rect
/kinect2/sd/image_depth_rect/compressed
/kinect2/sd/image_ir
/kinect2/sd/image_ir/compressed
/kinect2/sd/image_ir_rect
/kinect2/sd/image_ir_rect/compressed
/kinect2/sd/points
/rosout
/rosout_agg

I then launch the extract3d node: roslaunch skeleton_extract_3d openpose_skeleton_extract.launch, thats when I get this error:

I0417 08:45:56.511373 3731 net.cpp:746] Ignoring source layer loss_stage6_L2
[ INFO] [1555515956.536348320]: Initialization Successful!
[ INFO] [1555515956.537897071]: detectPosesCallback
[ INFO] [1555515956.539135319]: Parsed image
[ INFO] [1555515956.539211709]: Perform forward pass with the following settings:
[ INFO] [1555515956.539255062]: - net_input_size: 656 368
[ INFO] [1555515956.539295651]: - num_scales: 1
[ INFO] [1555515956.539335761]: - scale_gap: 0.3
[ INFO] [1555515956.539377529]: - image_size: [960 x 540]
[ INFO] [1555515956.563556154]: Initialized Net Size
[ERROR] [1555515956.904530260]: Failed to call service detect_poses_3d
[ERROR] [1555515956.904580573]: Did you remap the service and client names?
[ERROR] [1555515956.904608908]: This node expects a service called skeleton_2d_detector in which a launch file should have handled the remapping
[ERROR] [1555515957.031397286]: Failed to call service detect_poses_3d
[ERROR] [1555515957.031523101]: Did you remap the service and client names?
[ERROR] [1555515957.031569565]: This node expects a service called skeleton_2d_detector in which a launch file should have handled the remapping
[ERROR] [1555515957.041763153]: Failed to call service detect_poses_3d
[ERROR] [1555515957.041908761]: Did you remap the service and client names?
[ERROR] [1555515957.041982567]: This node expects a service called skeleton_2d_detector in which a launch file should have handled the remapping
[openpose_ros_node_3d-1] process has died [pid 3731, exit code -11, cmd /home/ece561/catkin_ws/devel/lib/openpose_ros_pkg/openpose_ros_node_3d __name:=openpose_ros_node_3d __log:=/home/ece561/.ros/log/870cf3be-6127-11e9-99da-d481d777f2a2/openpose_ros_node_3d-1.log].
log file: /home/ece561/.ros/log/870cf3be-6127-11e9-99da-d481d777f2a2/openpose_ros_node_3d-1*.log
[ERROR] [1555515957.127411125]: Failed to call service detect_poses_3d
[ERROR] [1555515957.127472240]: Did you remap the service and client names?
[ERROR] [1555515957.127493882]: This node expects a service called skeleton_2d_detector in which a launch file should have handled the remapping

I am using Kinectv2...the resolutions you had set in your installation page is the one I retained as they seem right.

it's definitely detecting images now and only the 3d extraction component is not working.
What do you get when you do:

rosservice list

and

rosnode list

?

For rosservice list , I get

/detect_poses_3d
/kinect2/get_loggers
/kinect2/list
/kinect2/load_nodelet
/kinect2/set_logger_level
/kinect2/unload_nodelet
/kinect2_bridge/get_loggers
/kinect2_bridge/set_logger_level
/kinect2_points_xyzrgb_hd/get_loggers
/kinect2_points_xyzrgb_hd/set_logger_level
/kinect2_points_xyzrgb_qhd/get_loggers
/kinect2_points_xyzrgb_qhd/set_logger_level
/kinect2_points_xyzrgb_sd/get_loggers
/kinect2_points_xyzrgb_sd/set_logger_level
/kinect2_viewer_1555525973612728782/get_loggers
/kinect2_viewer_1555525973612728782/set_logger_level
/openpose_ros_node_3d/get_loggers
/openpose_ros_node_3d/set_logger_level
/rosout/get_loggers
/rosout/set_logger_level
/skeleton_extract_3d_node/get_loggers
/skeleton_extract_3d_node/set_logger_level

For rosnode list , I see this:

/kinect2
/kinect2_bridge
/kinect2_points_xyzrgb_hd
/kinect2_points_xyzrgb_qhd
/kinect2_points_xyzrgb_sd
/kinect2_viewer_1555525973612728782
/openpose_ros_node_3d
/rosout
/skeleton_extract_3d_node