Gazebo Rendering

API Reference

9.0.0~pre2
Utils.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Open Source Robotics Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16*/
17#ifndef GZ_RENDERING_UTILS_HH_
18#define GZ_RENDERING_UTILS_HH_
19
20#include <vector>
21#include <memory>
22
23#include <gz/math/Helpers.hh>
25#include <gz/math/Vector2.hh>
26#include <gz/math/Vector3.hh>
27#include <gz/math/Pose3.hh>
28
30#include "gz/rendering/config.hh"
31#include "gz/rendering/Export.hh"
34#include "gz/rendering/Image.hh"
35
36
37namespace gz
38{
40 namespace rendering
41 {
42 // Inline bracket to help doxygen filtering.
43 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
44 //
52 GZ_RENDERING_VISIBLE
54 const math::Vector2i &_screenPos,
55 const CameraPtr &_camera,
56 const RayQueryPtr &_rayQuery,
57 float _maxDistance = 10.0);
58
67 GZ_RENDERING_VISIBLE
69 const math::Vector2i &_screenPos,
70 const CameraPtr &_camera,
71 const RayQueryPtr &_rayQuery,
72 RayQueryResult &_rayResult,
73 float _maxDistance = 10.0);
74
82 GZ_RENDERING_VISIBLE
84 const math::Vector2i &_screenPos,
85 const CameraPtr &_camera,
86 const RayQueryPtr &_rayQuery,
87 const float _offset = 0.0);
88
91 GZ_RENDERING_VISIBLE
93
99 GZ_RENDERING_VISIBLE
101 const gz::math::AxisAlignedBox &_box,
102 const gz::math::Pose3d &_pose);
103
113 GZ_RENDERING_VISIBLE
115 const gz::math::Matrix4d &_projectionMatrix,
116 double _width, double _height);
117
122 GZ_RENDERING_VISIBLE
123 Image convertRGBToBayer(const Image &_image, PixelFormat _bayerFormat);
124
128 GZ_RENDERING_VISIBLE
130 }
131 }
132}
133#endif