Skip to content

Commit 6632d1c

Browse files
committed
fix urg_start_measurement() (for urgLibrary 1.2.5 -> 1.2.7)
1 parent 4d10da2 commit 6632d1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/urg_node2.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ void UrgNode2::scan_thread()
447447
is_stable_ = urg_is_stable(&urg_);
448448

449449
// 計測開始
450-
int ret = urg_start_measurement(&urg_, measurement_type_, 0, skip_);
450+
int ret = urg_start_measurement(&urg_, measurement_type_, 0, skip_, 0);
451451
if (ret < 0) {
452452
RCLCPP_WARN(get_logger(), "Could not start Hokuyo measurement\n%s", urg_error(&urg_));
453453

@@ -774,7 +774,7 @@ bool UrgNode2::is_intensity_supported(void)
774774
return false;
775775
}
776776

777-
if (urg_start_measurement(&urg_, URG_DISTANCE_INTENSITY, 0, 0) < 0) {
777+
if (urg_start_measurement(&urg_, URG_DISTANCE_INTENSITY, 0, 0, 0) < 0) {
778778
RCLCPP_WARN(get_logger(), "Could not start Hokuyo measurement\n%s", urg_error(&urg_));
779779
return false;
780780
}
@@ -798,7 +798,7 @@ bool UrgNode2::is_multiecho_supported(void)
798798
return false;
799799
}
800800

801-
if (urg_start_measurement(&urg_, URG_MULTIECHO_INTENSITY, 0, 0) < 0) {
801+
if (urg_start_measurement(&urg_, URG_MULTIECHO_INTENSITY, 0, 0, 0) < 0) {
802802
RCLCPP_WARN(get_logger(), "Could not start Hokuyo measurement\n%s", urg_error(&urg_));
803803
return false;
804804
}
@@ -919,7 +919,7 @@ rclcpp::Duration UrgNode2::get_time_stamp_offset(size_t num_measurements)
919919
}
920920

921921
// 計測開始
922-
int ret = urg_start_measurement(&urg_, measurement_type_, 0, skip_);
922+
int ret = urg_start_measurement(&urg_, measurement_type_, 0, skip_, 0);
923923
if (ret < 0) {
924924
std::stringstream ss;
925925
ss << "Could not start Hokuyo measurement.\n";

0 commit comments

Comments
 (0)