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

Hello,I'm having problems running docker's preprocessing #81

Open
ZhangYBZ opened this issue Apr 19, 2024 · 3 comments
Open

Hello,I'm having problems running docker's preprocessing #81

ZhangYBZ opened this issue Apr 19, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ZhangYBZ
Copy link

When I was running docker preprocessing, I had a problem uploading a local packet.
Under this directory is the Calibration example package, which includes a.yaml file, a.db3 file, and a.bag file

docker run
--rm
--net host
--gpus all
-e DISPLAY=$DISPLAY
-v $HOME/.Xauthority:/root/.Xauthority
-v 1rosbag2:/tmp/input_bags
-v out:/tmp/preprocessed
koide3/direct_visual_lidar_calibration:humble ros2 run direct_visual_lidar_calibration preprocess -a -v /tmp/input_bags /tmp/preprocessed

tmp/input_bags /tmp/preprocessed
data_path: /tmp/input_bags
dst_path : /tmp/preprocessed
input_bags:
error: no input bags!!

@ZhangYBZ ZhangYBZ added the enhancement New feature or request label Apr 19, 2024
@koide3
Copy link
Owner

koide3 commented Apr 24, 2024

Maybe you need to specify input paths as absolute paths.

@ZhangYBZ
Copy link
Author

When absolute paths are used, a new problem arises
-$ docker run --rm --net host --gpus all -e DISPLAY=$DISPLAY -v $HOME/.Xauthority:/root/.Xauthority -v /home/zzy/documents/livox/1rosbag2:/tmp/input_bags -v /home/zzy/documents/livox/out:/tmp/preprocessed koide3/direct_visual_lidar_calibration:humble ros2 run direct_visual_lidar_calibration preprocess -a -v /tmp/input_bags /tmp/preprocessed
data_path: /tmp/input_bags
dst_path : /tmp/preprocessed
[ERROR] [1713959106.825795775] [rosbag2_storage]: No storage id specified, and no plugin found that could open URI
[INFO] [1713959106.827064691] [rosbag2_storage]: Opened database '/tmp/input_bags/rosbag2_2023_03_09-13_42_46_0.db3' for READ_ONLY.

closing.

closing.

closing.

closing.
input_bags:

  • /tmp/input_bags/rosbag2_2023_03_09-13_42_46_0.db3
    [INFO] [1713959106.830188673] [rosbag2_storage]: Opened database '/tmp/input_bags/rosbag2_2023_03_09-13_42_46_0.db3' for READ_ONLY.

closing.

closing.
topics in /tmp/input_bags/rosbag2_2023_03_09-13_42_46_0.db3:

  • /camera_info : sensor_msgs/msg/CameraInfo
  • /image : sensor_msgs/msg/Image
  • /livox/imu : sensor_msgs/msg/Imu
  • /livox/lidar : livox_interfaces/msg/CustomMsg
  • /livox/points : sensor_msgs/msg/PointCloud2
    selected topics:
  • camera_info: /camera_info
  • image : /image
  • points : /livox/points
    [INFO] [1713959106.833216940] [rosbag2_storage]: Opened database '/tmp/input_bags/rosbag2_2023_03_09-13_42_46_0.db3' for READ_ONLY.

closing.

closing.
intensity_channel: intensity
[INFO] [1713959106.843135915] [rosbag2_storage]: Opened database '/tmp/input_bags/rosbag2_2023_03_09-13_42_46_0.db3' for READ_ONLY.

closing.

closing.
try to get the camera model automatically
[INFO] [1713959106.869106008] [rosbag2_storage]: Opened database '/tmp/input_bags/rosbag2_2023_03_09-13_42_46_0.db3' for READ_ONLY.

closing.

closing.
camera_model: plumb_bob
image_size : 2448 2048
intrinsics : 1452.71 1455.88 1265.26 1045.82
dist_coeffs : -0.0420356 0.0873171 0.00238638 0.0056297 -0.0425115
processing images and points (num_threads_per_bag=20)
start processing /tmp/input_bags/rosbag2_2023_03_09-13_42_46_0.db3
[INFO] [1713959106.871861839] [rosbag2_storage]: Opened database '/tmp/input_bags/rosbag2_2023_03_09-13_42_46_0.db3' for READ_ONLY.
Authorization required, but no authorization protocol specified
glfw error 65544: X11: Failed to open display :1
failed to initialize GLFW

closing.

closing.
[ros2run]: Segmentation fault

@koide3
Copy link
Owner

koide3 commented Apr 25, 2024

It seems ROS2 bag format issue is occurring. What is the format of your rosbag?

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

No branches or pull requests

2 participants