diff --git a/prosilica_camera/src/nodes/prosilica_node.cpp b/prosilica_camera/src/nodes/prosilica_node.cpp index d9e41c8..5143795 100644 --- a/prosilica_camera/src/nodes/prosilica_node.cpp +++ b/prosilica_camera/src/nodes/prosilica_node.cpp @@ -216,6 +216,7 @@ class ProsilicaNode else if (config.trigger_mode == "fixedrate") { trigger_mode_ = prosilica::FixedRate; desired_freq_ = config.trig_rate; + cam_->setFrameRate(desired_freq_); } else if (config.trigger_mode == "polled") { trigger_mode_ = prosilica::Software; @@ -362,7 +363,6 @@ class ProsilicaNode trigger_sub_ = nh_.subscribe(trig_timestamp_topic_, 1, &ProsilicaNode::syncInCallback, this); } else if (trigger_mode_ == prosilica::FixedRate){ - cam_->setFrameRate(desired_freq_); } else { assert(trigger_mode_ == prosilica::Freerun);