JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
vision_sim.hpp
Go to the documentation of this file.
1// Copyright (c) JSim contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the LGPLv3 license file in the root directory of this project.
4
5#pragma once
6
9#include <vector>
10
11namespace frcsim {
12
16class VisionSim {
17public:
18 VisionSim() = default;
19 virtual ~VisionSim() = default;
20
27 virtual void Update(const Vector3& cameraPosition, const Quaternion& cameraRotation, double dt) = 0;
28
32 virtual bool HasTargets() const = 0;
33};
34
35} // namespace frcsim
virtual void Update(const Vector3 &cameraPosition, const Quaternion &cameraRotation, double dt)=0
Updates the vision simulation based on current robot and field poses.
VisionSim()=default
virtual ~VisionSim()=default
virtual bool HasTargets() const =0
Returns a boolean indicating if targets are visible in the fov.
Definition vector.hpp:13
Unit-quaternion rotation representation and rotation algebra helpers.
Definition quaternion.hpp:25
3D vector utility used throughout JSim physics.
Definition vector.hpp:22