ROS Melodic 的 ros_video_recorder 有什么好的替代方案?

问题描述

我需要对 ROS 项目进行姿势估计,并且我正在使用 ildoonet 的 tf-openpose,因为它不需要沉重的 NVIDIA GPU 即可获得不错的帧速率。我找到了一个很好的 ROS 包装器 here,但碰巧其中一个依赖项,即 ros_video_recorder 的 GitHub 页面删除了。我附上了终端输出,附上错误截图,方便阅读。有什么替代方法吗?主要的 tf-openpose 存储库也被删除了,但是有很多人分叉了它来添加他们的功能,所以这不是问题,但我找不到任何关于此的信息。任何和所有帮助将不胜感激。

当我正常启动网络摄像头姿势估计器时,它可以工作,只是 roslaunch 有问题。

我使用 Ubuntu 18.04 和 ROS 1 Melodic。

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://sufi-HP-Pavilion-Laptop-15-eh0xxx:33361/
 
SUMMARY
========
 
ParaMETERS
 * /image_view/autosize: True
 * /pose_estimator/camera: /videofile/image_raw
 * /pose_estimator/model: cmu_640x360
 * /pose_estimator_vis/camera: /videofile/image_raw
 * /pose_estimator_vis/pose: /pose_estimator/pose
 * /rosdistro: melodic
 * /rosversion: 1.14.10
 * /video_recorder/output_format: xvid
 * /video_recorder/output_height: 720
 * /video_recorder/output_path: 
 * /video_recorder/output_topic: ~output
 * /video_recorder/output_width: 640
 * /video_recorder/source1: /videofile/image_...
 * /video_recorder/source2: /pose_estimator_v...
 * /videofile/videofile_stream/buffer_queue_size: 100
 * /videofile/videofile_stream/camera_info_url: 
 * /videofile/videofile_stream/camera_name: videofile
 * /videofile/videofile_stream/flip_horizontal: False
 * /videofile/videofile_stream/flip_vertical: False
 * /videofile/videofile_stream/fps: 30.0
 * /videofile/videofile_stream/frame_id: videofile_frame
 * /videofile/videofile_stream/height: 720
 * /videofile/videofile_stream/loop_videofile: False
 * /videofile/videofile_stream/set_camera_fps: 30.0
 * /videofile/videofile_stream/start_frame: 0
 * /videofile/videofile_stream/stop_frame: -1
 * /videofile/videofile_stream/video_stream_provider: /home/sufi/catkin...
 * /videofile/videofile_stream/width: 1280
 
NODES
  /
    image_view (image_view/image_view)
    pose_estimator (tfpose_ros/broadcaster_ros.py)
    pose_estimator_vis (tfpose_ros/visualization.py)
    video_recorder (video_recorder/recorder.py)
  /videofile/
    videofile_stream (video_stream_opencv/video_stream)
 
auto-starting new master
process[master]: started with pid [5649]
ROS_MASTER_URI=http://localhost:11311
 
setting /run_id to f1c2d08e-9f7d-11eb-b82b-00e93a098f89
process[rosout-1]: started with pid [5660]
started core service [/rosout]
process[pose_estimator-2]: started with pid [5667]
process[pose_estimator_vis-3]: started with pid [5668]
process[image_view-4]: started with pid [5669]
ERROR: cannot launch node of type [video_recorder/recorder.py]: video_recorder
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/sufi/catkin_ws/src
ROS path [2]=/opt/ros/melodic/share
process[videofile/videofile_stream-6]: started with pid [5670]
[ INFO] [1618664884.770820240]: Initializing nodelet with 8 worker threads.
[ INFO] [1618664884.779925647]: Initializing nodelet with 8 worker threads.
[ INFO] [1618664884.836079522]: Using transport "raw"
[ INFO] [1618664884.885658332]: Camera name: videofile
[ INFO] [1618664884.885693674]: Provided camera_info_url: ''
[ INFO] [1618664884.885713161]: Publishing with frame_id: videofile_frame
[ INFO] [1618664884.885729504]: Setting camera FPS to: 30
[ INFO] [1618664884.885740330]: Throttling to fps: 30
[ INFO] [1618664884.885751296]: Setting buffer size for capturing frames to: 100
[ INFO] [1618664884.885761982]: Flip horizontal image is: false
[ INFO] [1618664884.885772249]: Flip vertical image is: false
[ INFO] [1618664884.885783145]: Video start frame is: 0
[ INFO] [1618664884.885792714]: Video stop frame is: -1
[ INFO] [1618664884.885803051]: Forced image width is: 1280
[ INFO] [1618664884.885812969]: Forced image height is: 720
Traceback (most recent call last):
  File "/home/sufi/catkin_ws/src/tf-pose-estimation/scripts/broadcaster_ros.py",line 14,in <module>
    from estimator import TfPoseEstimator
ImportError: No module named estimator
Traceback (most recent call last):
  File "/home/sufi/catkin_ws/src/tf-pose-estimation/scripts/visualization.py",line 9,in <module>
    from estimator import Human,BodyPart,TfPoseEstimator
ImportError: No module named estimator
================================================================================required process [pose_estimator-2] has died!
process has died [pid 5667,exit code 1,cmd /home/sufi/catkin_ws/src/tf-pose-estimation/scripts/broadcaster_ros.py __name:=pose_estimator __log:=/home/sufi/.ros/log/f1c2d08e-9f7d-11eb-b82b-00e93a098f89/pose_estimator-2.log].
log file: /home/sufi/.ros/log/f1c2d08e-9f7d-11eb-b82b-00e93a098f89/pose_estimator-2*.log
Initiating shutdown!
================================================================================
[videofile/videofile_stream-6] killing on exit
[image_view-4] killing on exit
[pose_estimator_vis-3] killing on exit
[pose_estimator-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

错误信息截图:

Screenshot of the error message

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)