include
aruco_ros
aruco_ros_utils.h
Go to the documentation of this file.
1
#ifndef ARUCO_ROS_UTILS_H
2
#define ARUCO_ROS_UTILS_H
3
4
#include <
aruco/aruco.h
>
5
#include <sensor_msgs/CameraInfo.h>
6
#include <sensor_msgs/Image.h>
7
#include <
tf/transform_datatypes.h
>
8
#include <
tf2/LinearMath/Transform.h
>
9
#include <
tf2/transform_datatypes.h
>
10
#include <visualization_msgs/Marker.h>
11
12
namespace
aruco_ros
13
{
22
aruco::CameraParameters
rosCameraInfo2ArucoCamParams
(
const
sensor_msgs::CameraInfo& cam_info,
23
bool
useRectifiedParameters);
24
25
tf::Transform
arucoMarker2Tf
(
const
aruco::Marker
& marker);
26
tf2::Transform
arucoMarker2Tf2
(
const
aruco::Marker
& marker);
27
28
std::vector<aruco::Marker>
detectMarkers
(
const
cv::Mat& img,
29
const
aruco::CameraParameters
& cam_params,
30
float
marker_size
,
31
aruco::MarkerDetector
* detector =
nullptr
,
32
bool
normalize_ilumination =
false
,
bool
correct_fisheye =
false
);
33
34
visualization_msgs::Marker
visMarkerFromPose
(
const
geometry_msgs::PoseStamped& pose,
35
double
marker_size
,
int
marker_id = 1);
36
37
}
38
#endif // ARUCO_ROS_UTILS_H
aruco_ros::arucoMarker2Tf2
tf2::Transform arucoMarker2Tf2(const aruco::Marker &marker)
Definition:
aruco_ros_utils.cpp:71
aruco.h
aruco::CameraParameters
aruco_ros::detectMarkers
std::vector< aruco::Marker > detectMarkers(const cv::Mat &img, const aruco::CameraParameters &cam_params, float marker_size, aruco::MarkerDetector *detector=nullptr, bool normalize_ilumination=false, bool correct_fisheye=false)
Definition:
aruco_ros_utils.cpp:90
aruco_ros
Definition:
aruco_ros_utils.h:12
tf2::Transform
aruco_ros::rosCameraInfo2ArucoCamParams
aruco::CameraParameters rosCameraInfo2ArucoCamParams(const sensor_msgs::CameraInfo &cam_info, bool useRectifiedParameters)
rosCameraInfo2ArucoCamParams gets the camera intrinsics from a CameraInfo message and copies them to ...
Definition:
aruco_ros_utils.cpp:9
aruco::Marker
aruco_ros::arucoMarker2Tf
tf::Transform arucoMarker2Tf(const aruco::Marker &marker)
Definition:
aruco_ros_utils.cpp:59
tf::Transform
transform_datatypes.h
aruco::MarkerDetector
marker_size
double marker_size
Definition:
simple_double.cpp:68
Transform.h
aruco_ros::visMarkerFromPose
visualization_msgs::Marker visMarkerFromPose(const geometry_msgs::PoseStamped &pose, double marker_size, int marker_id=1)
Definition:
aruco_ros_utils.cpp:125
aruco_ros
Author(s): Rafael Muñoz Salinas
, Bence Magyar
autogenerated on Sat Sep 23 2023 02:26:51