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

Failed to set settings_yaml parameter #121

Open
wilsonxiao opened this issue Dec 30, 2024 · 1 comment
Open

Failed to set settings_yaml parameter #121

wilsonxiao opened this issue Dec 30, 2024 · 1 comment

Comments

@wilsonxiao
Copy link

When I run the sample_capture_cpp via the launch script.

cd ~/ros2_ws && source install/setup.bash
ros2 launch zivid_samples sample_with_rviz.launch sample:=sample_capture_cpp

I get the error:
[sample_capture_cpp-2] [ERROR] [1735476537.643947854] [sample_capture_cpp]: Failed to set settings_yaml parameter
[sample_capture_cpp-2] terminate called after throwing an instance of 'std::runtime_error'
[sample_capture_cpp-2] what(): Failed to set settings_yaml parameter
[ERROR] [sample_capture_cpp-2]: process has died [pid 127356, exit code -6, cmd '/home/wilson/ros2_ws/src/install/zivid_samples/lib/zivid_samples/sample_capture_cpp --ros-args -r __node:=sample_capture_cpp'].

The detailed log is as follows:
[INFO] [launch]: All log files can be found below /home/wilson/.ros/log/2024-12-29-20-48-27-246820-user-127353
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [zivid_camera-1]: process started with pid [127354]
[INFO] [sample_capture_cpp-2]: process started with pid [127356]
[INFO] [rviz2-3]: process started with pid [127358]
[sample_capture_cpp-2] [INFO] [1735476507.505121915] [sample_capture_cpp]: Started the sample_capture node
[sample_capture_cpp-2] [INFO] [1735476507.505312290] [sample_capture_cpp]: Setting parameter 'settings_yaml'
[zivid_camera-1] [INFO] [1735476508.051380171] [zivid_camera]: Zivid ROS driver
[zivid_camera-1] [INFO] [1735476508.051683151] [zivid_camera]: The node's namespace is '/'
[zivid_camera-1] [INFO] [1735476508.051751396] [zivid_camera]: Running Zivid Core version 2.13.1+18e79e79-1
[rviz2-3] [INFO] [1735476509.452803563] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-3] [INFO] [1735476509.452875719] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[rviz2-3] [INFO] [1735476509.498086814] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-3] [INFO] [1735476509.778586188] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-3] [INFO] [1735476509.798698534] [rviz2]: Stereo is NOT SUPPORTED
[zivid_camera-1] [INFO] [1735476511.070689599] [zivid_camera]: 1 camera(s) found
[zivid_camera-1] [INFO] [1735476511.071008058] [zivid_camera]: Selecting first available camera
[zivid_camera-1] [INFO] [1735476511.071988587] [zivid_camera]: { Serial Number: 234470BG, Status: available, Model: zividTwo, Model Name: Zivid 2 M70, IP Address: 192.168.0.171, Firmware Version: 1.26.3+ff1e16c8, Hardware Revision: B3 }
[zivid_camera-1] [INFO] [1735476511.072203142] [zivid_camera]: Connecting to camera '234470BG'
[sample_capture_cpp-2] [ERROR] [1735476537.643947854] [sample_capture_cpp]: Failed to set settings_yaml parameter
[sample_capture_cpp-2] terminate called after throwing an instance of 'std::runtime_error'
[sample_capture_cpp-2] what(): Failed to set settings_yaml parameter
[ERROR] [sample_capture_cpp-2]: process has died [pid 127356, exit code -6, cmd '/home/wilson/ros2_ws/src/install/zivid_samples/lib/zivid_samples/sample_capture_cpp --ros-args -r __node:=sample_capture_cpp'].
[zivid_camera-1] [INFO] [1735476566.928130107] [zivid_camera]: Connected to camera '234470BG'
[zivid_camera-1] [INFO] [1735476566.928232693] [zivid_camera]: Camera status changed to Connected (was Idle)
[zivid_camera-1] [INFO] [1735476566.928464545] [zivid_camera]: Advertising topics
[zivid_camera-1] [INFO] [1735476566.932663322] [zivid_camera]: Advertising services
[zivid_camera-1] [INFO] [1735476566.936269849] [zivid_camera]: Zivid camera driver is now ready!
[zivid_camera-1] [WARN] [1735476567.036870995] [zivid_camera.rclcpp]: failed to send response to /zivid_camera/set_parameters (timeout): client will not receive response, at ./src/rmw_response.cpp:154, at ./src/rcl/service.c:314
[INFO] [rviz2-3]: process has finished cleanly [pid 127358]

@micragz
Copy link
Contributor

micragz commented Jan 2, 2025

Hi @wilsonxiao.

Does this happen every time when launching the sample? Does it happen with the other samples?

Can you tell us more about your environment? In particular which OS and version being used, which ROS2 version being used, and which commit of the Zivid ROS driver being used.

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

No branches or pull requests

2 participants