Skip to content
Snippets Groups Projects
Commit bb5b8ced authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Minor changes

parent 04f122f8
No related branches found
No related tags found
1 merge request!312Support new basler cameras
......@@ -42,10 +42,16 @@ class Source {
*/
virtual bool retrieve(ftl::rgbd::Frame &frame)=0;
/**
* Is the source ready to capture and retrieve?
*/
virtual bool isReady() { return false; };
virtual void setPose(const Eigen::Matrix4d &pose) { state_.setPose(pose); };
virtual Camera parameters(ftl::codecs::Channel) { return params_; };
[[deprecated]] virtual void setPose(const Eigen::Matrix4d &pose) { state_.setPose(pose); };
[[deprecated]] virtual Camera parameters(ftl::codecs::Channel) { return params_; };
ftl::rgbd::Source *host() { return host_; }
ftl::rgbd::FrameState &state() { return state_; }
protected:
ftl::rgbd::FrameState state_;
......
......@@ -219,6 +219,7 @@ bool Source::dispatch(int64_t ts) {
callback_(ts, frames_[1]);
is_dispatching = false;
});
return true;
}
void Source::_swap() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment