package builds with custom message definitions

This commit is contained in:
Sem van der Hoeven
2023-04-19 12:16:49 +00:00
parent 35e28ca6d4
commit 3405c36e47
205 changed files with 34137 additions and 25114 deletions

View File

@@ -0,0 +1,119 @@
// generated from rosidl_generator_cpp/resource/idl__builder.hpp.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__BUILDER_HPP_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__BUILDER_HPP_
#include "beacon_positioning/msg/detail/tracker_position__struct.hpp"
#include <rosidl_runtime_cpp/message_initialization.hpp>
#include <algorithm>
#include <utility>
namespace beacon_positioning
{
namespace msg
{
namespace builder
{
class Init_TrackerPosition_anchor_distances
{
public:
explicit Init_TrackerPosition_anchor_distances(::beacon_positioning::msg::TrackerPosition & msg)
: msg_(msg)
{}
::beacon_positioning::msg::TrackerPosition anchor_distances(::beacon_positioning::msg::TrackerPosition::_anchor_distances_type arg)
{
msg_.anchor_distances = std::move(arg);
return std::move(msg_);
}
private:
::beacon_positioning::msg::TrackerPosition msg_;
};
class Init_TrackerPosition_z_pos
{
public:
explicit Init_TrackerPosition_z_pos(::beacon_positioning::msg::TrackerPosition & msg)
: msg_(msg)
{}
Init_TrackerPosition_anchor_distances z_pos(::beacon_positioning::msg::TrackerPosition::_z_pos_type arg)
{
msg_.z_pos = std::move(arg);
return Init_TrackerPosition_anchor_distances(msg_);
}
private:
::beacon_positioning::msg::TrackerPosition msg_;
};
class Init_TrackerPosition_y_pos
{
public:
explicit Init_TrackerPosition_y_pos(::beacon_positioning::msg::TrackerPosition & msg)
: msg_(msg)
{}
Init_TrackerPosition_z_pos y_pos(::beacon_positioning::msg::TrackerPosition::_y_pos_type arg)
{
msg_.y_pos = std::move(arg);
return Init_TrackerPosition_z_pos(msg_);
}
private:
::beacon_positioning::msg::TrackerPosition msg_;
};
class Init_TrackerPosition_x_pos
{
public:
explicit Init_TrackerPosition_x_pos(::beacon_positioning::msg::TrackerPosition & msg)
: msg_(msg)
{}
Init_TrackerPosition_y_pos x_pos(::beacon_positioning::msg::TrackerPosition::_x_pos_type arg)
{
msg_.x_pos = std::move(arg);
return Init_TrackerPosition_y_pos(msg_);
}
private:
::beacon_positioning::msg::TrackerPosition msg_;
};
class Init_TrackerPosition_id
{
public:
Init_TrackerPosition_id()
: msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
{}
Init_TrackerPosition_x_pos id(::beacon_positioning::msg::TrackerPosition::_id_type arg)
{
msg_.id = std::move(arg);
return Init_TrackerPosition_x_pos(msg_);
}
private:
::beacon_positioning::msg::TrackerPosition msg_;
};
} // namespace builder
} // namespace msg
template<typename MessageType>
auto build();
template<>
inline
auto build<::beacon_positioning::msg::TrackerPosition>()
{
return beacon_positioning::msg::builder::Init_TrackerPosition_id();
}
} // namespace beacon_positioning
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__BUILDER_HPP_

View File

@@ -0,0 +1,267 @@
// generated from rosidl_generator_c/resource/idl__functions.c.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#include "beacon_positioning/msg/detail/tracker_position__functions.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "rcutils/allocator.h"
bool
beacon_positioning__msg__TrackerPosition__init(beacon_positioning__msg__TrackerPosition * msg)
{
if (!msg) {
return false;
}
// id
// x_pos
// y_pos
// z_pos
// anchor_distances
return true;
}
void
beacon_positioning__msg__TrackerPosition__fini(beacon_positioning__msg__TrackerPosition * msg)
{
if (!msg) {
return;
}
// id
// x_pos
// y_pos
// z_pos
// anchor_distances
}
bool
beacon_positioning__msg__TrackerPosition__are_equal(const beacon_positioning__msg__TrackerPosition * lhs, const beacon_positioning__msg__TrackerPosition * rhs)
{
if (!lhs || !rhs) {
return false;
}
// id
if (lhs->id != rhs->id) {
return false;
}
// x_pos
if (lhs->x_pos != rhs->x_pos) {
return false;
}
// y_pos
if (lhs->y_pos != rhs->y_pos) {
return false;
}
// z_pos
if (lhs->z_pos != rhs->z_pos) {
return false;
}
// anchor_distances
for (size_t i = 0; i < 4; ++i) {
if (lhs->anchor_distances[i] != rhs->anchor_distances[i]) {
return false;
}
}
return true;
}
bool
beacon_positioning__msg__TrackerPosition__copy(
const beacon_positioning__msg__TrackerPosition * input,
beacon_positioning__msg__TrackerPosition * output)
{
if (!input || !output) {
return false;
}
// id
output->id = input->id;
// x_pos
output->x_pos = input->x_pos;
// y_pos
output->y_pos = input->y_pos;
// z_pos
output->z_pos = input->z_pos;
// anchor_distances
for (size_t i = 0; i < 4; ++i) {
output->anchor_distances[i] = input->anchor_distances[i];
}
return true;
}
beacon_positioning__msg__TrackerPosition *
beacon_positioning__msg__TrackerPosition__create()
{
rcutils_allocator_t allocator = rcutils_get_default_allocator();
beacon_positioning__msg__TrackerPosition * msg = (beacon_positioning__msg__TrackerPosition *)allocator.allocate(sizeof(beacon_positioning__msg__TrackerPosition), allocator.state);
if (!msg) {
return NULL;
}
memset(msg, 0, sizeof(beacon_positioning__msg__TrackerPosition));
bool success = beacon_positioning__msg__TrackerPosition__init(msg);
if (!success) {
allocator.deallocate(msg, allocator.state);
return NULL;
}
return msg;
}
void
beacon_positioning__msg__TrackerPosition__destroy(beacon_positioning__msg__TrackerPosition * msg)
{
rcutils_allocator_t allocator = rcutils_get_default_allocator();
if (msg) {
beacon_positioning__msg__TrackerPosition__fini(msg);
}
allocator.deallocate(msg, allocator.state);
}
bool
beacon_positioning__msg__TrackerPosition__Sequence__init(beacon_positioning__msg__TrackerPosition__Sequence * array, size_t size)
{
if (!array) {
return false;
}
rcutils_allocator_t allocator = rcutils_get_default_allocator();
beacon_positioning__msg__TrackerPosition * data = NULL;
if (size) {
data = (beacon_positioning__msg__TrackerPosition *)allocator.zero_allocate(size, sizeof(beacon_positioning__msg__TrackerPosition), allocator.state);
if (!data) {
return false;
}
// initialize all array elements
size_t i;
for (i = 0; i < size; ++i) {
bool success = beacon_positioning__msg__TrackerPosition__init(&data[i]);
if (!success) {
break;
}
}
if (i < size) {
// if initialization failed finalize the already initialized array elements
for (; i > 0; --i) {
beacon_positioning__msg__TrackerPosition__fini(&data[i - 1]);
}
allocator.deallocate(data, allocator.state);
return false;
}
}
array->data = data;
array->size = size;
array->capacity = size;
return true;
}
void
beacon_positioning__msg__TrackerPosition__Sequence__fini(beacon_positioning__msg__TrackerPosition__Sequence * array)
{
if (!array) {
return;
}
rcutils_allocator_t allocator = rcutils_get_default_allocator();
if (array->data) {
// ensure that data and capacity values are consistent
assert(array->capacity > 0);
// finalize all array elements
for (size_t i = 0; i < array->capacity; ++i) {
beacon_positioning__msg__TrackerPosition__fini(&array->data[i]);
}
allocator.deallocate(array->data, allocator.state);
array->data = NULL;
array->size = 0;
array->capacity = 0;
} else {
// ensure that data, size, and capacity values are consistent
assert(0 == array->size);
assert(0 == array->capacity);
}
}
beacon_positioning__msg__TrackerPosition__Sequence *
beacon_positioning__msg__TrackerPosition__Sequence__create(size_t size)
{
rcutils_allocator_t allocator = rcutils_get_default_allocator();
beacon_positioning__msg__TrackerPosition__Sequence * array = (beacon_positioning__msg__TrackerPosition__Sequence *)allocator.allocate(sizeof(beacon_positioning__msg__TrackerPosition__Sequence), allocator.state);
if (!array) {
return NULL;
}
bool success = beacon_positioning__msg__TrackerPosition__Sequence__init(array, size);
if (!success) {
allocator.deallocate(array, allocator.state);
return NULL;
}
return array;
}
void
beacon_positioning__msg__TrackerPosition__Sequence__destroy(beacon_positioning__msg__TrackerPosition__Sequence * array)
{
rcutils_allocator_t allocator = rcutils_get_default_allocator();
if (array) {
beacon_positioning__msg__TrackerPosition__Sequence__fini(array);
}
allocator.deallocate(array, allocator.state);
}
bool
beacon_positioning__msg__TrackerPosition__Sequence__are_equal(const beacon_positioning__msg__TrackerPosition__Sequence * lhs, const beacon_positioning__msg__TrackerPosition__Sequence * rhs)
{
if (!lhs || !rhs) {
return false;
}
if (lhs->size != rhs->size) {
return false;
}
for (size_t i = 0; i < lhs->size; ++i) {
if (!beacon_positioning__msg__TrackerPosition__are_equal(&(lhs->data[i]), &(rhs->data[i]))) {
return false;
}
}
return true;
}
bool
beacon_positioning__msg__TrackerPosition__Sequence__copy(
const beacon_positioning__msg__TrackerPosition__Sequence * input,
beacon_positioning__msg__TrackerPosition__Sequence * output)
{
if (!input || !output) {
return false;
}
if (output->capacity < input->size) {
const size_t allocation_size =
input->size * sizeof(beacon_positioning__msg__TrackerPosition);
beacon_positioning__msg__TrackerPosition * data =
(beacon_positioning__msg__TrackerPosition *)realloc(output->data, allocation_size);
if (!data) {
return false;
}
for (size_t i = output->capacity; i < input->size; ++i) {
if (!beacon_positioning__msg__TrackerPosition__init(&data[i])) {
/* free currently allocated and return false */
for (; i-- > output->capacity; ) {
beacon_positioning__msg__TrackerPosition__fini(&data[i]);
}
free(data);
return false;
}
}
output->data = data;
output->capacity = input->size;
}
output->size = input->size;
for (size_t i = 0; i < input->size; ++i) {
if (!beacon_positioning__msg__TrackerPosition__copy(
&(input->data[i]), &(output->data[i])))
{
return false;
}
}
return true;
}

View File

@@ -0,0 +1,177 @@
// generated from rosidl_generator_c/resource/idl__functions.h.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__FUNCTIONS_H_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__FUNCTIONS_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdbool.h>
#include <stdlib.h>
#include "rosidl_runtime_c/visibility_control.h"
#include "beacon_positioning/msg/rosidl_generator_c__visibility_control.h"
#include "beacon_positioning/msg/detail/tracker_position__struct.h"
/// Initialize msg/TrackerPosition message.
/**
* If the init function is called twice for the same message without
* calling fini inbetween previously allocated memory will be leaked.
* \param[in,out] msg The previously allocated message pointer.
* Fields without a default value will not be initialized by this function.
* You might want to call memset(msg, 0, sizeof(
* beacon_positioning__msg__TrackerPosition
* )) before or use
* beacon_positioning__msg__TrackerPosition__create()
* to allocate and initialize the message.
* \return true if initialization was successful, otherwise false
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
bool
beacon_positioning__msg__TrackerPosition__init(beacon_positioning__msg__TrackerPosition * msg);
/// Finalize msg/TrackerPosition message.
/**
* \param[in,out] msg The allocated message pointer.
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
void
beacon_positioning__msg__TrackerPosition__fini(beacon_positioning__msg__TrackerPosition * msg);
/// Create msg/TrackerPosition message.
/**
* It allocates the memory for the message, sets the memory to zero, and
* calls
* beacon_positioning__msg__TrackerPosition__init().
* \return The pointer to the initialized message if successful,
* otherwise NULL
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
beacon_positioning__msg__TrackerPosition *
beacon_positioning__msg__TrackerPosition__create();
/// Destroy msg/TrackerPosition message.
/**
* It calls
* beacon_positioning__msg__TrackerPosition__fini()
* and frees the memory of the message.
* \param[in,out] msg The allocated message pointer.
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
void
beacon_positioning__msg__TrackerPosition__destroy(beacon_positioning__msg__TrackerPosition * msg);
/// Check for msg/TrackerPosition message equality.
/**
* \param[in] lhs The message on the left hand size of the equality operator.
* \param[in] rhs The message on the right hand size of the equality operator.
* \return true if messages are equal, otherwise false.
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
bool
beacon_positioning__msg__TrackerPosition__are_equal(const beacon_positioning__msg__TrackerPosition * lhs, const beacon_positioning__msg__TrackerPosition * rhs);
/// Copy a msg/TrackerPosition message.
/**
* This functions performs a deep copy, as opposed to the shallow copy that
* plain assignment yields.
*
* \param[in] input The source message pointer.
* \param[out] output The target message pointer, which must
* have been initialized before calling this function.
* \return true if successful, or false if either pointer is null
* or memory allocation fails.
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
bool
beacon_positioning__msg__TrackerPosition__copy(
const beacon_positioning__msg__TrackerPosition * input,
beacon_positioning__msg__TrackerPosition * output);
/// Initialize array of msg/TrackerPosition messages.
/**
* It allocates the memory for the number of elements and calls
* beacon_positioning__msg__TrackerPosition__init()
* for each element of the array.
* \param[in,out] array The allocated array pointer.
* \param[in] size The size / capacity of the array.
* \return true if initialization was successful, otherwise false
* If the array pointer is valid and the size is zero it is guaranteed
# to return true.
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
bool
beacon_positioning__msg__TrackerPosition__Sequence__init(beacon_positioning__msg__TrackerPosition__Sequence * array, size_t size);
/// Finalize array of msg/TrackerPosition messages.
/**
* It calls
* beacon_positioning__msg__TrackerPosition__fini()
* for each element of the array and frees the memory for the number of
* elements.
* \param[in,out] array The initialized array pointer.
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
void
beacon_positioning__msg__TrackerPosition__Sequence__fini(beacon_positioning__msg__TrackerPosition__Sequence * array);
/// Create array of msg/TrackerPosition messages.
/**
* It allocates the memory for the array and calls
* beacon_positioning__msg__TrackerPosition__Sequence__init().
* \param[in] size The size / capacity of the array.
* \return The pointer to the initialized array if successful, otherwise NULL
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
beacon_positioning__msg__TrackerPosition__Sequence *
beacon_positioning__msg__TrackerPosition__Sequence__create(size_t size);
/// Destroy array of msg/TrackerPosition messages.
/**
* It calls
* beacon_positioning__msg__TrackerPosition__Sequence__fini()
* on the array,
* and frees the memory of the array.
* \param[in,out] array The initialized array pointer.
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
void
beacon_positioning__msg__TrackerPosition__Sequence__destroy(beacon_positioning__msg__TrackerPosition__Sequence * array);
/// Check for msg/TrackerPosition message array equality.
/**
* \param[in] lhs The message array on the left hand size of the equality operator.
* \param[in] rhs The message array on the right hand size of the equality operator.
* \return true if message arrays are equal in size and content, otherwise false.
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
bool
beacon_positioning__msg__TrackerPosition__Sequence__are_equal(const beacon_positioning__msg__TrackerPosition__Sequence * lhs, const beacon_positioning__msg__TrackerPosition__Sequence * rhs);
/// Copy an array of msg/TrackerPosition messages.
/**
* This functions performs a deep copy, as opposed to the shallow copy that
* plain assignment yields.
*
* \param[in] input The source array pointer.
* \param[out] output The target array pointer, which must
* have been initialized before calling this function.
* \return true if successful, or false if either pointer
* is null or memory allocation fails.
*/
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
bool
beacon_positioning__msg__TrackerPosition__Sequence__copy(
const beacon_positioning__msg__TrackerPosition__Sequence * input,
beacon_positioning__msg__TrackerPosition__Sequence * output);
#ifdef __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__FUNCTIONS_H_

View File

@@ -0,0 +1,36 @@
// generated from rosidl_typesupport_fastrtps_c/resource/idl__rosidl_typesupport_fastrtps_c.h.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_FASTRTPS_C_H_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_FASTRTPS_C_H_
#include <stddef.h>
#include "rosidl_runtime_c/message_type_support_struct.h"
#include "rosidl_typesupport_interface/macros.h"
#include "beacon_positioning/msg/rosidl_typesupport_fastrtps_c__visibility_control.h"
#ifdef __cplusplus
extern "C"
{
#endif
ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_beacon_positioning
size_t get_serialized_size_beacon_positioning__msg__TrackerPosition(
const void * untyped_ros_message,
size_t current_alignment);
ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_beacon_positioning
size_t max_serialized_size_beacon_positioning__msg__TrackerPosition(
bool & full_bounded,
size_t current_alignment);
ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_beacon_positioning
const rosidl_message_type_support_t *
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_fastrtps_c, beacon_positioning, msg, TrackerPosition)();
#ifdef __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_FASTRTPS_C_H_

View File

@@ -0,0 +1,79 @@
// generated from rosidl_typesupport_fastrtps_cpp/resource/idl__rosidl_typesupport_fastrtps_cpp.hpp.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_FASTRTPS_CPP_HPP_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_FASTRTPS_CPP_HPP_
#include "rosidl_runtime_c/message_type_support_struct.h"
#include "rosidl_typesupport_interface/macros.h"
#include "beacon_positioning/msg/rosidl_typesupport_fastrtps_cpp__visibility_control.h"
#include "beacon_positioning/msg/detail/tracker_position__struct.hpp"
#ifndef _WIN32
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-parameter"
# ifdef __clang__
# pragma clang diagnostic ignored "-Wdeprecated-register"
# pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
# endif
#endif
#ifndef _WIN32
# pragma GCC diagnostic pop
#endif
#include "fastcdr/Cdr.h"
namespace beacon_positioning
{
namespace msg
{
namespace typesupport_fastrtps_cpp
{
bool
ROSIDL_TYPESUPPORT_FASTRTPS_CPP_PUBLIC_beacon_positioning
cdr_serialize(
const beacon_positioning::msg::TrackerPosition & ros_message,
eprosima::fastcdr::Cdr & cdr);
bool
ROSIDL_TYPESUPPORT_FASTRTPS_CPP_PUBLIC_beacon_positioning
cdr_deserialize(
eprosima::fastcdr::Cdr & cdr,
beacon_positioning::msg::TrackerPosition & ros_message);
size_t
ROSIDL_TYPESUPPORT_FASTRTPS_CPP_PUBLIC_beacon_positioning
get_serialized_size(
const beacon_positioning::msg::TrackerPosition & ros_message,
size_t current_alignment);
size_t
ROSIDL_TYPESUPPORT_FASTRTPS_CPP_PUBLIC_beacon_positioning
max_serialized_size_TrackerPosition(
bool & full_bounded,
size_t current_alignment);
} // namespace typesupport_fastrtps_cpp
} // namespace msg
} // namespace beacon_positioning
#ifdef __cplusplus
extern "C"
{
#endif
ROSIDL_TYPESUPPORT_FASTRTPS_CPP_PUBLIC_beacon_positioning
const rosidl_message_type_support_t *
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_fastrtps_cpp, beacon_positioning, msg, TrackerPosition)();
#ifdef __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_FASTRTPS_CPP_HPP_

View File

@@ -0,0 +1,26 @@
// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include "rosidl_runtime_c/message_type_support_struct.h"
#include "rosidl_typesupport_interface/macros.h"
#include "beacon_positioning/msg/rosidl_typesupport_introspection_c__visibility_control.h"
ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_beacon_positioning
const rosidl_message_type_support_t *
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, beacon_positioning, msg, TrackerPosition)();
#ifdef __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_

View File

@@ -0,0 +1,27 @@
// generated from rosidl_typesupport_introspection_cpp/resource/idl__rosidl_typesupport_introspection_cpp.h.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_HPP_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_HPP_
#include "rosidl_runtime_c/message_type_support_struct.h"
#include "rosidl_typesupport_interface/macros.h"
#include "rosidl_typesupport_introspection_cpp/visibility_control.h"
#ifdef __cplusplus
extern "C"
{
#endif
// TODO(dirk-thomas) these visibility macros should be message package specific
ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_PUBLIC
const rosidl_message_type_support_t *
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_cpp, beacon_positioning, msg, TrackerPosition)();
#ifdef __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_HPP_

View File

@@ -0,0 +1,44 @@
// generated from rosidl_generator_c/resource/idl__struct.h.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__STRUCT_H_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__STRUCT_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
// Constants defined in the message
// Struct defined in msg/TrackerPosition in the package beacon_positioning.
typedef struct beacon_positioning__msg__TrackerPosition
{
int32_t id;
int64_t x_pos;
int64_t y_pos;
int64_t z_pos;
int64_t anchor_distances[4];
} beacon_positioning__msg__TrackerPosition;
// Struct for a sequence of beacon_positioning__msg__TrackerPosition.
typedef struct beacon_positioning__msg__TrackerPosition__Sequence
{
beacon_positioning__msg__TrackerPosition * data;
/// The number of valid items in data
size_t size;
/// The number of allocated items in data
size_t capacity;
} beacon_positioning__msg__TrackerPosition__Sequence;
#ifdef __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__STRUCT_H_

View File

@@ -0,0 +1,186 @@
// generated from rosidl_generator_cpp/resource/idl__struct.hpp.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__STRUCT_HPP_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__STRUCT_HPP_
#include <rosidl_runtime_cpp/bounded_vector.hpp>
#include <rosidl_runtime_cpp/message_initialization.hpp>
#include <algorithm>
#include <array>
#include <memory>
#include <string>
#include <vector>
#ifndef _WIN32
# define DEPRECATED__beacon_positioning__msg__TrackerPosition __attribute__((deprecated))
#else
# define DEPRECATED__beacon_positioning__msg__TrackerPosition __declspec(deprecated)
#endif
namespace beacon_positioning
{
namespace msg
{
// message struct
template<class ContainerAllocator>
struct TrackerPosition_
{
using Type = TrackerPosition_<ContainerAllocator>;
explicit TrackerPosition_(rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
{
if (rosidl_runtime_cpp::MessageInitialization::ALL == _init ||
rosidl_runtime_cpp::MessageInitialization::ZERO == _init)
{
this->id = 0l;
this->x_pos = 0ll;
this->y_pos = 0ll;
this->z_pos = 0ll;
std::fill<typename std::array<int64_t, 4>::iterator, int64_t>(this->anchor_distances.begin(), this->anchor_distances.end(), 0ll);
}
}
explicit TrackerPosition_(const ContainerAllocator & _alloc, rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
: anchor_distances(_alloc)
{
if (rosidl_runtime_cpp::MessageInitialization::ALL == _init ||
rosidl_runtime_cpp::MessageInitialization::ZERO == _init)
{
this->id = 0l;
this->x_pos = 0ll;
this->y_pos = 0ll;
this->z_pos = 0ll;
std::fill<typename std::array<int64_t, 4>::iterator, int64_t>(this->anchor_distances.begin(), this->anchor_distances.end(), 0ll);
}
}
// field types and members
using _id_type =
int32_t;
_id_type id;
using _x_pos_type =
int64_t;
_x_pos_type x_pos;
using _y_pos_type =
int64_t;
_y_pos_type y_pos;
using _z_pos_type =
int64_t;
_z_pos_type z_pos;
using _anchor_distances_type =
std::array<int64_t, 4>;
_anchor_distances_type anchor_distances;
// setters for named parameter idiom
Type & set__id(
const int32_t & _arg)
{
this->id = _arg;
return *this;
}
Type & set__x_pos(
const int64_t & _arg)
{
this->x_pos = _arg;
return *this;
}
Type & set__y_pos(
const int64_t & _arg)
{
this->y_pos = _arg;
return *this;
}
Type & set__z_pos(
const int64_t & _arg)
{
this->z_pos = _arg;
return *this;
}
Type & set__anchor_distances(
const std::array<int64_t, 4> & _arg)
{
this->anchor_distances = _arg;
return *this;
}
// constant declarations
// pointer types
using RawPtr =
beacon_positioning::msg::TrackerPosition_<ContainerAllocator> *;
using ConstRawPtr =
const beacon_positioning::msg::TrackerPosition_<ContainerAllocator> *;
using SharedPtr =
std::shared_ptr<beacon_positioning::msg::TrackerPosition_<ContainerAllocator>>;
using ConstSharedPtr =
std::shared_ptr<beacon_positioning::msg::TrackerPosition_<ContainerAllocator> const>;
template<typename Deleter = std::default_delete<
beacon_positioning::msg::TrackerPosition_<ContainerAllocator>>>
using UniquePtrWithDeleter =
std::unique_ptr<beacon_positioning::msg::TrackerPosition_<ContainerAllocator>, Deleter>;
using UniquePtr = UniquePtrWithDeleter<>;
template<typename Deleter = std::default_delete<
beacon_positioning::msg::TrackerPosition_<ContainerAllocator>>>
using ConstUniquePtrWithDeleter =
std::unique_ptr<beacon_positioning::msg::TrackerPosition_<ContainerAllocator> const, Deleter>;
using ConstUniquePtr = ConstUniquePtrWithDeleter<>;
using WeakPtr =
std::weak_ptr<beacon_positioning::msg::TrackerPosition_<ContainerAllocator>>;
using ConstWeakPtr =
std::weak_ptr<beacon_positioning::msg::TrackerPosition_<ContainerAllocator> const>;
// pointer types similar to ROS 1, use SharedPtr / ConstSharedPtr instead
// NOTE: Can't use 'using' here because GNU C++ can't parse attributes properly
typedef DEPRECATED__beacon_positioning__msg__TrackerPosition
std::shared_ptr<beacon_positioning::msg::TrackerPosition_<ContainerAllocator>>
Ptr;
typedef DEPRECATED__beacon_positioning__msg__TrackerPosition
std::shared_ptr<beacon_positioning::msg::TrackerPosition_<ContainerAllocator> const>
ConstPtr;
// comparison operators
bool operator==(const TrackerPosition_ & other) const
{
if (this->id != other.id) {
return false;
}
if (this->x_pos != other.x_pos) {
return false;
}
if (this->y_pos != other.y_pos) {
return false;
}
if (this->z_pos != other.z_pos) {
return false;
}
if (this->anchor_distances != other.anchor_distances) {
return false;
}
return true;
}
bool operator!=(const TrackerPosition_ & other) const
{
return !this->operator==(other);
}
}; // struct TrackerPosition_
// alias to use template instance with default allocator
using TrackerPosition =
beacon_positioning::msg::TrackerPosition_<std::allocator<void>>;
// constant definitions
} // namespace msg
} // namespace beacon_positioning
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__STRUCT_HPP_

View File

@@ -0,0 +1,42 @@
// generated from rosidl_generator_cpp/resource/idl__traits.hpp.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__TRAITS_HPP_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__TRAITS_HPP_
#include "beacon_positioning/msg/detail/tracker_position__struct.hpp"
#include <rosidl_runtime_cpp/traits.hpp>
#include <stdint.h>
#include <type_traits>
namespace rosidl_generator_traits
{
template<>
inline const char * data_type<beacon_positioning::msg::TrackerPosition>()
{
return "beacon_positioning::msg::TrackerPosition";
}
template<>
inline const char * name<beacon_positioning::msg::TrackerPosition>()
{
return "beacon_positioning/msg/TrackerPosition";
}
template<>
struct has_fixed_size<beacon_positioning::msg::TrackerPosition>
: std::integral_constant<bool, true> {};
template<>
struct has_bounded_size<beacon_positioning::msg::TrackerPosition>
: std::integral_constant<bool, true> {};
template<>
struct is_message<beacon_positioning::msg::TrackerPosition>
: std::true_type {};
} // namespace rosidl_generator_traits
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__TRAITS_HPP_

View File

@@ -0,0 +1,141 @@
// generated from rosidl_typesupport_introspection_c/resource/idl__type_support.c.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#include <stddef.h>
#include "beacon_positioning/msg/detail/tracker_position__rosidl_typesupport_introspection_c.h"
#include "beacon_positioning/msg/rosidl_typesupport_introspection_c__visibility_control.h"
#include "rosidl_typesupport_introspection_c/field_types.h"
#include "rosidl_typesupport_introspection_c/identifier.h"
#include "rosidl_typesupport_introspection_c/message_introspection.h"
#include "beacon_positioning/msg/detail/tracker_position__functions.h"
#include "beacon_positioning/msg/detail/tracker_position__struct.h"
#ifdef __cplusplus
extern "C"
{
#endif
void TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_init_function(
void * message_memory, enum rosidl_runtime_c__message_initialization _init)
{
// TODO(karsten1987): initializers are not yet implemented for typesupport c
// see https://github.com/ros2/ros2/issues/397
(void) _init;
beacon_positioning__msg__TrackerPosition__init(message_memory);
}
void TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_fini_function(void * message_memory)
{
beacon_positioning__msg__TrackerPosition__fini(message_memory);
}
static rosidl_typesupport_introspection_c__MessageMember TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_message_member_array[5] = {
{
"id", // name
rosidl_typesupport_introspection_c__ROS_TYPE_INT32, // type
0, // upper bound of string
NULL, // members of sub message
false, // is array
0, // array size
false, // is upper bound
offsetof(beacon_positioning__msg__TrackerPosition, id), // bytes offset in struct
NULL, // default value
NULL, // size() function pointer
NULL, // get_const(index) function pointer
NULL, // get(index) function pointer
NULL // resize(index) function pointer
},
{
"x_pos", // name
rosidl_typesupport_introspection_c__ROS_TYPE_INT64, // type
0, // upper bound of string
NULL, // members of sub message
false, // is array
0, // array size
false, // is upper bound
offsetof(beacon_positioning__msg__TrackerPosition, x_pos), // bytes offset in struct
NULL, // default value
NULL, // size() function pointer
NULL, // get_const(index) function pointer
NULL, // get(index) function pointer
NULL // resize(index) function pointer
},
{
"y_pos", // name
rosidl_typesupport_introspection_c__ROS_TYPE_INT64, // type
0, // upper bound of string
NULL, // members of sub message
false, // is array
0, // array size
false, // is upper bound
offsetof(beacon_positioning__msg__TrackerPosition, y_pos), // bytes offset in struct
NULL, // default value
NULL, // size() function pointer
NULL, // get_const(index) function pointer
NULL, // get(index) function pointer
NULL // resize(index) function pointer
},
{
"z_pos", // name
rosidl_typesupport_introspection_c__ROS_TYPE_INT64, // type
0, // upper bound of string
NULL, // members of sub message
false, // is array
0, // array size
false, // is upper bound
offsetof(beacon_positioning__msg__TrackerPosition, z_pos), // bytes offset in struct
NULL, // default value
NULL, // size() function pointer
NULL, // get_const(index) function pointer
NULL, // get(index) function pointer
NULL // resize(index) function pointer
},
{
"anchor_distances", // name
rosidl_typesupport_introspection_c__ROS_TYPE_INT64, // type
0, // upper bound of string
NULL, // members of sub message
true, // is array
4, // array size
false, // is upper bound
offsetof(beacon_positioning__msg__TrackerPosition, anchor_distances), // bytes offset in struct
NULL, // default value
NULL, // size() function pointer
NULL, // get_const(index) function pointer
NULL, // get(index) function pointer
NULL // resize(index) function pointer
}
};
static const rosidl_typesupport_introspection_c__MessageMembers TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_message_members = {
"beacon_positioning__msg", // message namespace
"TrackerPosition", // message name
5, // number of fields
sizeof(beacon_positioning__msg__TrackerPosition),
TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_message_member_array, // message members
TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_init_function, // function to initialize message memory (memory has to be allocated)
TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_fini_function // function to terminate message instance (will not free memory)
};
// this is not const since it must be initialized on first access
// since C does not allow non-integral compile-time constants
static rosidl_message_type_support_t TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_message_type_support_handle = {
0,
&TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_message_members,
get_message_typesupport_handle_function,
};
ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_beacon_positioning
const rosidl_message_type_support_t *
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, beacon_positioning, msg, TrackerPosition)() {
if (!TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_message_type_support_handle.typesupport_identifier) {
TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_message_type_support_handle.typesupport_identifier =
rosidl_typesupport_introspection_c__identifier;
}
return &TrackerPosition__rosidl_typesupport_introspection_c__TrackerPosition_message_type_support_handle;
}
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,187 @@
// generated from rosidl_typesupport_introspection_cpp/resource/idl__type_support.cpp.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#include "array"
#include "cstddef"
#include "string"
#include "vector"
#include "rosidl_runtime_c/message_type_support_struct.h"
#include "rosidl_typesupport_cpp/message_type_support.hpp"
#include "rosidl_typesupport_interface/macros.h"
#include "beacon_positioning/msg/detail/tracker_position__struct.hpp"
#include "rosidl_typesupport_introspection_cpp/field_types.hpp"
#include "rosidl_typesupport_introspection_cpp/identifier.hpp"
#include "rosidl_typesupport_introspection_cpp/message_introspection.hpp"
#include "rosidl_typesupport_introspection_cpp/message_type_support_decl.hpp"
#include "rosidl_typesupport_introspection_cpp/visibility_control.h"
namespace beacon_positioning
{
namespace msg
{
namespace rosidl_typesupport_introspection_cpp
{
void TrackerPosition_init_function(
void * message_memory, rosidl_runtime_cpp::MessageInitialization _init)
{
new (message_memory) beacon_positioning::msg::TrackerPosition(_init);
}
void TrackerPosition_fini_function(void * message_memory)
{
auto typed_message = static_cast<beacon_positioning::msg::TrackerPosition *>(message_memory);
typed_message->~TrackerPosition();
}
size_t size_function__TrackerPosition__anchor_distances(const void * untyped_member)
{
(void)untyped_member;
return 4;
}
const void * get_const_function__TrackerPosition__anchor_distances(const void * untyped_member, size_t index)
{
const auto & member =
*reinterpret_cast<const std::array<int64_t, 4> *>(untyped_member);
return &member[index];
}
void * get_function__TrackerPosition__anchor_distances(void * untyped_member, size_t index)
{
auto & member =
*reinterpret_cast<std::array<int64_t, 4> *>(untyped_member);
return &member[index];
}
static const ::rosidl_typesupport_introspection_cpp::MessageMember TrackerPosition_message_member_array[5] = {
{
"id", // name
::rosidl_typesupport_introspection_cpp::ROS_TYPE_INT32, // type
0, // upper bound of string
nullptr, // members of sub message
false, // is array
0, // array size
false, // is upper bound
offsetof(beacon_positioning::msg::TrackerPosition, id), // bytes offset in struct
nullptr, // default value
nullptr, // size() function pointer
nullptr, // get_const(index) function pointer
nullptr, // get(index) function pointer
nullptr // resize(index) function pointer
},
{
"x_pos", // name
::rosidl_typesupport_introspection_cpp::ROS_TYPE_INT64, // type
0, // upper bound of string
nullptr, // members of sub message
false, // is array
0, // array size
false, // is upper bound
offsetof(beacon_positioning::msg::TrackerPosition, x_pos), // bytes offset in struct
nullptr, // default value
nullptr, // size() function pointer
nullptr, // get_const(index) function pointer
nullptr, // get(index) function pointer
nullptr // resize(index) function pointer
},
{
"y_pos", // name
::rosidl_typesupport_introspection_cpp::ROS_TYPE_INT64, // type
0, // upper bound of string
nullptr, // members of sub message
false, // is array
0, // array size
false, // is upper bound
offsetof(beacon_positioning::msg::TrackerPosition, y_pos), // bytes offset in struct
nullptr, // default value
nullptr, // size() function pointer
nullptr, // get_const(index) function pointer
nullptr, // get(index) function pointer
nullptr // resize(index) function pointer
},
{
"z_pos", // name
::rosidl_typesupport_introspection_cpp::ROS_TYPE_INT64, // type
0, // upper bound of string
nullptr, // members of sub message
false, // is array
0, // array size
false, // is upper bound
offsetof(beacon_positioning::msg::TrackerPosition, z_pos), // bytes offset in struct
nullptr, // default value
nullptr, // size() function pointer
nullptr, // get_const(index) function pointer
nullptr, // get(index) function pointer
nullptr // resize(index) function pointer
},
{
"anchor_distances", // name
::rosidl_typesupport_introspection_cpp::ROS_TYPE_INT64, // type
0, // upper bound of string
nullptr, // members of sub message
true, // is array
4, // array size
false, // is upper bound
offsetof(beacon_positioning::msg::TrackerPosition, anchor_distances), // bytes offset in struct
nullptr, // default value
size_function__TrackerPosition__anchor_distances, // size() function pointer
get_const_function__TrackerPosition__anchor_distances, // get_const(index) function pointer
get_function__TrackerPosition__anchor_distances, // get(index) function pointer
nullptr // resize(index) function pointer
}
};
static const ::rosidl_typesupport_introspection_cpp::MessageMembers TrackerPosition_message_members = {
"beacon_positioning::msg", // message namespace
"TrackerPosition", // message name
5, // number of fields
sizeof(beacon_positioning::msg::TrackerPosition),
TrackerPosition_message_member_array, // message members
TrackerPosition_init_function, // function to initialize message memory (memory has to be allocated)
TrackerPosition_fini_function // function to terminate message instance (will not free memory)
};
static const rosidl_message_type_support_t TrackerPosition_message_type_support_handle = {
::rosidl_typesupport_introspection_cpp::typesupport_identifier,
&TrackerPosition_message_members,
get_message_typesupport_handle_function,
};
} // namespace rosidl_typesupport_introspection_cpp
} // namespace msg
} // namespace beacon_positioning
namespace rosidl_typesupport_introspection_cpp
{
template<>
ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_PUBLIC
const rosidl_message_type_support_t *
get_message_type_support_handle<beacon_positioning::msg::TrackerPosition>()
{
return &::beacon_positioning::msg::rosidl_typesupport_introspection_cpp::TrackerPosition_message_type_support_handle;
}
} // namespace rosidl_typesupport_introspection_cpp
#ifdef __cplusplus
extern "C"
{
#endif
ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_PUBLIC
const rosidl_message_type_support_t *
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_cpp, beacon_positioning, msg, TrackerPosition)() {
return &::beacon_positioning::msg::rosidl_typesupport_introspection_cpp::TrackerPosition_message_type_support_handle;
}
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,33 @@
// generated from rosidl_generator_c/resource/idl__type_support.h.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__TYPE_SUPPORT_H_
#define BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__TYPE_SUPPORT_H_
#include "rosidl_typesupport_interface/macros.h"
#include "beacon_positioning/msg/rosidl_generator_c__visibility_control.h"
#ifdef __cplusplus
extern "C"
{
#endif
#include "rosidl_runtime_c/message_type_support_struct.h"
// Forward declare the get type support functions for this type.
ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
const rosidl_message_type_support_t *
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(
rosidl_typesupport_c,
beacon_positioning,
msg,
TrackerPosition
)();
#ifdef __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__DETAIL__TRACKER_POSITION__TYPE_SUPPORT_H_

View File

@@ -0,0 +1,42 @@
// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_
#define BEACON_POSITIONING__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_
#ifdef __cplusplus
extern "C"
{
#endif
// This logic was borrowed (then namespaced) from the examples on the gcc wiki:
// https://gcc.gnu.org/wiki/Visibility
#if defined _WIN32 || defined __CYGWIN__
#ifdef __GNUC__
#define ROSIDL_GENERATOR_C_EXPORT_beacon_positioning __attribute__ ((dllexport))
#define ROSIDL_GENERATOR_C_IMPORT_beacon_positioning __attribute__ ((dllimport))
#else
#define ROSIDL_GENERATOR_C_EXPORT_beacon_positioning __declspec(dllexport)
#define ROSIDL_GENERATOR_C_IMPORT_beacon_positioning __declspec(dllimport)
#endif
#ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_beacon_positioning
#define ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning ROSIDL_GENERATOR_C_EXPORT_beacon_positioning
#else
#define ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning ROSIDL_GENERATOR_C_IMPORT_beacon_positioning
#endif
#else
#define ROSIDL_GENERATOR_C_EXPORT_beacon_positioning __attribute__ ((visibility("default")))
#define ROSIDL_GENERATOR_C_IMPORT_beacon_positioning
#if __GNUC__ >= 4
#define ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning __attribute__ ((visibility("default")))
#else
#define ROSIDL_GENERATOR_C_PUBLIC_beacon_positioning
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_

View File

@@ -0,0 +1,43 @@
// generated from
// rosidl_typesupport_fastrtps_c/resource/rosidl_typesupport_fastrtps_c__visibility_control.h.in
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__ROSIDL_TYPESUPPORT_FASTRTPS_C__VISIBILITY_CONTROL_H_
#define BEACON_POSITIONING__MSG__ROSIDL_TYPESUPPORT_FASTRTPS_C__VISIBILITY_CONTROL_H_
#if __cplusplus
extern "C"
{
#endif
// This logic was borrowed (then namespaced) from the examples on the gcc wiki:
// https://gcc.gnu.org/wiki/Visibility
#if defined _WIN32 || defined __CYGWIN__
#ifdef __GNUC__
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_EXPORT_beacon_positioning __attribute__ ((dllexport))
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_IMPORT_beacon_positioning __attribute__ ((dllimport))
#else
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_EXPORT_beacon_positioning __declspec(dllexport)
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_IMPORT_beacon_positioning __declspec(dllimport)
#endif
#ifdef ROSIDL_TYPESUPPORT_FASTRTPS_C_BUILDING_DLL_beacon_positioning
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_beacon_positioning ROSIDL_TYPESUPPORT_FASTRTPS_C_EXPORT_beacon_positioning
#else
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_beacon_positioning ROSIDL_TYPESUPPORT_FASTRTPS_C_IMPORT_beacon_positioning
#endif
#else
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_EXPORT_beacon_positioning __attribute__ ((visibility("default")))
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_IMPORT_beacon_positioning
#if __GNUC__ >= 4
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_beacon_positioning __attribute__ ((visibility("default")))
#else
#define ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_beacon_positioning
#endif
#endif
#if __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__ROSIDL_TYPESUPPORT_FASTRTPS_C__VISIBILITY_CONTROL_H_

View File

@@ -0,0 +1,43 @@
// generated from
// rosidl_typesupport_fastrtps_cpp/resource/rosidl_typesupport_fastrtps_cpp__visibility_control.h.in
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__ROSIDL_TYPESUPPORT_FASTRTPS_CPP__VISIBILITY_CONTROL_H_
#define BEACON_POSITIONING__MSG__ROSIDL_TYPESUPPORT_FASTRTPS_CPP__VISIBILITY_CONTROL_H_
#if __cplusplus
extern "C"
{
#endif
// This logic was borrowed (then namespaced) from the examples on the gcc wiki:
// https://gcc.gnu.org/wiki/Visibility
#if defined _WIN32 || defined __CYGWIN__
#ifdef __GNUC__
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_EXPORT_beacon_positioning __attribute__ ((dllexport))
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_IMPORT_beacon_positioning __attribute__ ((dllimport))
#else
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_EXPORT_beacon_positioning __declspec(dllexport)
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_IMPORT_beacon_positioning __declspec(dllimport)
#endif
#ifdef ROSIDL_TYPESUPPORT_FASTRTPS_CPP_BUILDING_DLL_beacon_positioning
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_PUBLIC_beacon_positioning ROSIDL_TYPESUPPORT_FASTRTPS_CPP_EXPORT_beacon_positioning
#else
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_PUBLIC_beacon_positioning ROSIDL_TYPESUPPORT_FASTRTPS_CPP_IMPORT_beacon_positioning
#endif
#else
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_EXPORT_beacon_positioning __attribute__ ((visibility("default")))
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_IMPORT_beacon_positioning
#if __GNUC__ >= 4
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_PUBLIC_beacon_positioning __attribute__ ((visibility("default")))
#else
#define ROSIDL_TYPESUPPORT_FASTRTPS_CPP_PUBLIC_beacon_positioning
#endif
#endif
#if __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__ROSIDL_TYPESUPPORT_FASTRTPS_CPP__VISIBILITY_CONTROL_H_

View File

@@ -0,0 +1,43 @@
// generated from
// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_
#define BEACON_POSITIONING__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_
#ifdef __cplusplus
extern "C"
{
#endif
// This logic was borrowed (then namespaced) from the examples on the gcc wiki:
// https://gcc.gnu.org/wiki/Visibility
#if defined _WIN32 || defined __CYGWIN__
#ifdef __GNUC__
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_beacon_positioning __attribute__ ((dllexport))
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_beacon_positioning __attribute__ ((dllimport))
#else
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_beacon_positioning __declspec(dllexport)
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_beacon_positioning __declspec(dllimport)
#endif
#ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_beacon_positioning
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_beacon_positioning ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_beacon_positioning
#else
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_beacon_positioning ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_beacon_positioning
#endif
#else
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_beacon_positioning __attribute__ ((visibility("default")))
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_beacon_positioning
#if __GNUC__ >= 4
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_beacon_positioning __attribute__ ((visibility("default")))
#else
#define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_beacon_positioning
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif // BEACON_POSITIONING__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_

View File

@@ -0,0 +1,12 @@
// generated from rosidl_generator_c/resource/idl.h.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__TRACKER_POSITION_H_
#define BEACON_POSITIONING__MSG__TRACKER_POSITION_H_
#include "beacon_positioning/msg/detail/tracker_position__struct.h"
#include "beacon_positioning/msg/detail/tracker_position__functions.h"
#include "beacon_positioning/msg/detail/tracker_position__type_support.h"
#endif // BEACON_POSITIONING__MSG__TRACKER_POSITION_H_

View File

@@ -0,0 +1,11 @@
// generated from rosidl_generator_cpp/resource/idl.hpp.em
// generated code does not contain a copyright notice
#ifndef BEACON_POSITIONING__MSG__TRACKER_POSITION_HPP_
#define BEACON_POSITIONING__MSG__TRACKER_POSITION_HPP_
#include "beacon_positioning/msg/detail/tracker_position__struct.hpp"
#include "beacon_positioning/msg/detail/tracker_position__builder.hpp"
#include "beacon_positioning/msg/detail/tracker_position__traits.hpp"
#endif // BEACON_POSITIONING__MSG__TRACKER_POSITION_HPP_

View File

@@ -0,0 +1 @@
from beacon_positioning.msg._tracker_position import TrackerPosition # noqa: F401

View File

@@ -0,0 +1,231 @@
# generated from rosidl_generator_py/resource/_idl.py.em
# with input from beacon_positioning:msg/TrackerPosition.idl
# generated code does not contain a copyright notice
# Import statements for member types
# Member 'anchor_distances'
import numpy # noqa: E402, I100
import rosidl_parser.definition # noqa: E402, I100
class Metaclass_TrackerPosition(type):
"""Metaclass of message 'TrackerPosition'."""
_CREATE_ROS_MESSAGE = None
_CONVERT_FROM_PY = None
_CONVERT_TO_PY = None
_DESTROY_ROS_MESSAGE = None
_TYPE_SUPPORT = None
__constants = {
}
@classmethod
def __import_type_support__(cls):
try:
from rosidl_generator_py import import_type_support
module = import_type_support('beacon_positioning')
except ImportError:
import logging
import traceback
logger = logging.getLogger(
'beacon_positioning.msg.TrackerPosition')
logger.debug(
'Failed to import needed modules for type support:\n' +
traceback.format_exc())
else:
cls._CREATE_ROS_MESSAGE = module.create_ros_message_msg__msg__tracker_position
cls._CONVERT_FROM_PY = module.convert_from_py_msg__msg__tracker_position
cls._CONVERT_TO_PY = module.convert_to_py_msg__msg__tracker_position
cls._TYPE_SUPPORT = module.type_support_msg__msg__tracker_position
cls._DESTROY_ROS_MESSAGE = module.destroy_ros_message_msg__msg__tracker_position
@classmethod
def __prepare__(cls, name, bases, **kwargs):
# list constant names here so that they appear in the help text of
# the message class under "Data and other attributes defined here:"
# as well as populate each message instance
return {
}
class TrackerPosition(metaclass=Metaclass_TrackerPosition):
"""Message class 'TrackerPosition'."""
__slots__ = [
'_id',
'_x_pos',
'_y_pos',
'_z_pos',
'_anchor_distances',
]
_fields_and_field_types = {
'id': 'int32',
'x_pos': 'int64',
'y_pos': 'int64',
'z_pos': 'int64',
'anchor_distances': 'int64[4]',
}
SLOT_TYPES = (
rosidl_parser.definition.BasicType('int32'), # noqa: E501
rosidl_parser.definition.BasicType('int64'), # noqa: E501
rosidl_parser.definition.BasicType('int64'), # noqa: E501
rosidl_parser.definition.BasicType('int64'), # noqa: E501
rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int64'), 4), # noqa: E501
)
def __init__(self, **kwargs):
assert all('_' + key in self.__slots__ for key in kwargs.keys()), \
'Invalid arguments passed to constructor: %s' % \
', '.join(sorted(k for k in kwargs.keys() if '_' + k not in self.__slots__))
self.id = kwargs.get('id', int())
self.x_pos = kwargs.get('x_pos', int())
self.y_pos = kwargs.get('y_pos', int())
self.z_pos = kwargs.get('z_pos', int())
if 'anchor_distances' not in kwargs:
self.anchor_distances = numpy.zeros(4, dtype=numpy.int64)
else:
self.anchor_distances = numpy.array(kwargs.get('anchor_distances'), dtype=numpy.int64)
assert self.anchor_distances.shape == (4, )
def __repr__(self):
typename = self.__class__.__module__.split('.')
typename.pop()
typename.append(self.__class__.__name__)
args = []
for s, t in zip(self.__slots__, self.SLOT_TYPES):
field = getattr(self, s)
fieldstr = repr(field)
# We use Python array type for fields that can be directly stored
# in them, and "normal" sequences for everything else. If it is
# a type that we store in an array, strip off the 'array' portion.
if (
isinstance(t, rosidl_parser.definition.AbstractSequence) and
isinstance(t.value_type, rosidl_parser.definition.BasicType) and
t.value_type.typename in ['float', 'double', 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64']
):
if len(field) == 0:
fieldstr = '[]'
else:
assert fieldstr.startswith('array(')
prefix = "array('X', "
suffix = ')'
fieldstr = fieldstr[len(prefix):-len(suffix)]
args.append(s[1:] + '=' + fieldstr)
return '%s(%s)' % ('.'.join(typename), ', '.join(args))
def __eq__(self, other):
if not isinstance(other, self.__class__):
return False
if self.id != other.id:
return False
if self.x_pos != other.x_pos:
return False
if self.y_pos != other.y_pos:
return False
if self.z_pos != other.z_pos:
return False
if all(self.anchor_distances != other.anchor_distances):
return False
return True
@classmethod
def get_fields_and_field_types(cls):
from copy import copy
return copy(cls._fields_and_field_types)
@property # noqa: A003
def id(self): # noqa: A003
"""Message field 'id'."""
return self._id
@id.setter # noqa: A003
def id(self, value): # noqa: A003
if __debug__:
assert \
isinstance(value, int), \
"The 'id' field must be of type 'int'"
assert value >= -2147483648 and value < 2147483648, \
"The 'id' field must be an integer in [-2147483648, 2147483647]"
self._id = value
@property
def x_pos(self):
"""Message field 'x_pos'."""
return self._x_pos
@x_pos.setter
def x_pos(self, value):
if __debug__:
assert \
isinstance(value, int), \
"The 'x_pos' field must be of type 'int'"
assert value >= -9223372036854775808 and value < 9223372036854775808, \
"The 'x_pos' field must be an integer in [-9223372036854775808, 9223372036854775807]"
self._x_pos = value
@property
def y_pos(self):
"""Message field 'y_pos'."""
return self._y_pos
@y_pos.setter
def y_pos(self, value):
if __debug__:
assert \
isinstance(value, int), \
"The 'y_pos' field must be of type 'int'"
assert value >= -9223372036854775808 and value < 9223372036854775808, \
"The 'y_pos' field must be an integer in [-9223372036854775808, 9223372036854775807]"
self._y_pos = value
@property
def z_pos(self):
"""Message field 'z_pos'."""
return self._z_pos
@z_pos.setter
def z_pos(self, value):
if __debug__:
assert \
isinstance(value, int), \
"The 'z_pos' field must be of type 'int'"
assert value >= -9223372036854775808 and value < 9223372036854775808, \
"The 'z_pos' field must be an integer in [-9223372036854775808, 9223372036854775807]"
self._z_pos = value
@property
def anchor_distances(self):
"""Message field 'anchor_distances'."""
return self._anchor_distances
@anchor_distances.setter
def anchor_distances(self, value):
if isinstance(value, numpy.ndarray):
assert value.dtype == numpy.int64, \
"The 'anchor_distances' numpy.ndarray() must have the dtype of 'numpy.int64'"
assert value.size == 4, \
"The 'anchor_distances' numpy.ndarray() must have a size of 4"
self._anchor_distances = value
return
if __debug__:
from collections.abc import Sequence
from collections.abc import Set
from collections import UserList
from collections import UserString
assert \
((isinstance(value, Sequence) or
isinstance(value, Set) or
isinstance(value, UserList)) and
not isinstance(value, str) and
not isinstance(value, UserString) and
len(value) == 4 and
all(isinstance(v, int) for v in value) and
all(val >= -9223372036854775808 and val < 9223372036854775808 for val in value)), \
"The 'anchor_distances' field must be a set or sequence with length 4 and each value of type 'int' and each integer in [-9223372036854775808, 9223372036854775807]"
self._anchor_distances = numpy.array(value, dtype=numpy.int64)

View File

@@ -0,0 +1,203 @@
// generated from rosidl_generator_py/resource/_idl_support.c.em
// with input from beacon_positioning:msg/TrackerPosition.idl
// generated code does not contain a copyright notice
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <Python.h>
#include <stdbool.h>
#ifndef _WIN32
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-function"
#endif
#include "numpy/ndarrayobject.h"
#ifndef _WIN32
# pragma GCC diagnostic pop
#endif
#include "rosidl_runtime_c/visibility_control.h"
#include "beacon_positioning/msg/detail/tracker_position__struct.h"
#include "beacon_positioning/msg/detail/tracker_position__functions.h"
#include "rosidl_runtime_c/primitives_sequence.h"
#include "rosidl_runtime_c/primitives_sequence_functions.h"
ROSIDL_GENERATOR_C_EXPORT
bool beacon_positioning__msg__tracker_position__convert_from_py(PyObject * _pymsg, void * _ros_message)
{
// check that the passed message is of the expected Python class
{
char full_classname_dest[57];
{
char * class_name = NULL;
char * module_name = NULL;
{
PyObject * class_attr = PyObject_GetAttrString(_pymsg, "__class__");
if (class_attr) {
PyObject * name_attr = PyObject_GetAttrString(class_attr, "__name__");
if (name_attr) {
class_name = (char *)PyUnicode_1BYTE_DATA(name_attr);
Py_DECREF(name_attr);
}
PyObject * module_attr = PyObject_GetAttrString(class_attr, "__module__");
if (module_attr) {
module_name = (char *)PyUnicode_1BYTE_DATA(module_attr);
Py_DECREF(module_attr);
}
Py_DECREF(class_attr);
}
}
if (!class_name || !module_name) {
return false;
}
snprintf(full_classname_dest, sizeof(full_classname_dest), "%s.%s", module_name, class_name);
}
assert(strncmp("beacon_positioning.msg._tracker_position.TrackerPosition", full_classname_dest, 56) == 0);
}
beacon_positioning__msg__TrackerPosition * ros_message = _ros_message;
{ // id
PyObject * field = PyObject_GetAttrString(_pymsg, "id");
if (!field) {
return false;
}
assert(PyLong_Check(field));
ros_message->id = (int32_t)PyLong_AsLong(field);
Py_DECREF(field);
}
{ // x_pos
PyObject * field = PyObject_GetAttrString(_pymsg, "x_pos");
if (!field) {
return false;
}
assert(PyLong_Check(field));
ros_message->x_pos = PyLong_AsLongLong(field);
Py_DECREF(field);
}
{ // y_pos
PyObject * field = PyObject_GetAttrString(_pymsg, "y_pos");
if (!field) {
return false;
}
assert(PyLong_Check(field));
ros_message->y_pos = PyLong_AsLongLong(field);
Py_DECREF(field);
}
{ // z_pos
PyObject * field = PyObject_GetAttrString(_pymsg, "z_pos");
if (!field) {
return false;
}
assert(PyLong_Check(field));
ros_message->z_pos = PyLong_AsLongLong(field);
Py_DECREF(field);
}
{ // anchor_distances
PyObject * field = PyObject_GetAttrString(_pymsg, "anchor_distances");
if (!field) {
return false;
}
{
// TODO(dirk-thomas) use a better way to check the type before casting
assert(field->ob_type != NULL);
assert(field->ob_type->tp_name != NULL);
assert(strcmp(field->ob_type->tp_name, "numpy.ndarray") == 0);
PyArrayObject * seq_field = (PyArrayObject *)field;
Py_INCREF(seq_field);
assert(PyArray_NDIM(seq_field) == 1);
assert(PyArray_TYPE(seq_field) == NPY_INT64);
Py_ssize_t size = 4;
int64_t * dest = ros_message->anchor_distances;
for (Py_ssize_t i = 0; i < size; ++i) {
int64_t tmp = *(npy_int64 *)PyArray_GETPTR1(seq_field, i);
memcpy(&dest[i], &tmp, sizeof(int64_t));
}
Py_DECREF(seq_field);
}
Py_DECREF(field);
}
return true;
}
ROSIDL_GENERATOR_C_EXPORT
PyObject * beacon_positioning__msg__tracker_position__convert_to_py(void * raw_ros_message)
{
/* NOTE(esteve): Call constructor of TrackerPosition */
PyObject * _pymessage = NULL;
{
PyObject * pymessage_module = PyImport_ImportModule("beacon_positioning.msg._tracker_position");
assert(pymessage_module);
PyObject * pymessage_class = PyObject_GetAttrString(pymessage_module, "TrackerPosition");
assert(pymessage_class);
Py_DECREF(pymessage_module);
_pymessage = PyObject_CallObject(pymessage_class, NULL);
Py_DECREF(pymessage_class);
if (!_pymessage) {
return NULL;
}
}
beacon_positioning__msg__TrackerPosition * ros_message = (beacon_positioning__msg__TrackerPosition *)raw_ros_message;
{ // id
PyObject * field = NULL;
field = PyLong_FromLong(ros_message->id);
{
int rc = PyObject_SetAttrString(_pymessage, "id", field);
Py_DECREF(field);
if (rc) {
return NULL;
}
}
}
{ // x_pos
PyObject * field = NULL;
field = PyLong_FromLongLong(ros_message->x_pos);
{
int rc = PyObject_SetAttrString(_pymessage, "x_pos", field);
Py_DECREF(field);
if (rc) {
return NULL;
}
}
}
{ // y_pos
PyObject * field = NULL;
field = PyLong_FromLongLong(ros_message->y_pos);
{
int rc = PyObject_SetAttrString(_pymessage, "y_pos", field);
Py_DECREF(field);
if (rc) {
return NULL;
}
}
}
{ // z_pos
PyObject * field = NULL;
field = PyLong_FromLongLong(ros_message->z_pos);
{
int rc = PyObject_SetAttrString(_pymessage, "z_pos", field);
Py_DECREF(field);
if (rc) {
return NULL;
}
}
}
{ // anchor_distances
PyObject * field = NULL;
field = PyObject_GetAttrString(_pymessage, "anchor_distances");
if (!field) {
return NULL;
}
assert(field->ob_type != NULL);
assert(field->ob_type->tp_name != NULL);
assert(strcmp(field->ob_type->tp_name, "numpy.ndarray") == 0);
PyArrayObject * seq_field = (PyArrayObject *)field;
assert(PyArray_NDIM(seq_field) == 1);
assert(PyArray_TYPE(seq_field) == NPY_INT64);
assert(sizeof(npy_int64) == sizeof(int64_t));
npy_int64 * dst = (npy_int64 *)PyArray_GETPTR1(seq_field, 0);
int64_t * src = &(ros_message->anchor_distances[0]);
memcpy(dst, src, 4 * sizeof(int64_t));
Py_DECREF(field);
}
// ownership of _pymessage is transferred to the caller
return _pymessage;
}

View File

@@ -0,0 +1 @@
rclcpp;std_msgs;rosidl_default_runtime;ament_lint_auto;ament_lint_common

View File

@@ -0,0 +1 @@
/home/ubuntu/ros2_ws/install/px4_ros_com:/home/ubuntu/ros2_ws/install/px4_msgs:/home/ubuntu/ros2_ws/install/beacon_positioning:/opt/ros/foxy

View File

@@ -0,0 +1,2 @@
msg/TrackerPosition.idl
msg/TrackerPosition.msg

View File

@@ -0,0 +1,92 @@
# generated from ament_cmake_export_dependencies/cmake/ament_cmake_export_dependencies-extras.cmake.in
set(_exported_dependencies "rosidl_runtime_c;rosidl_typesupport_interface")
find_package(ament_cmake_libraries QUIET REQUIRED)
# find_package() all dependencies
# and append their DEFINITIONS INCLUDE_DIRS, LIBRARIES, and LINK_FLAGS
# variables to beacon_positioning_DEFINITIONS, beacon_positioning_INCLUDE_DIRS,
# beacon_positioning_LIBRARIES, and beacon_positioning_LINK_FLAGS.
# Additionally collect the direct dependency names in
# beacon_positioning_DEPENDENCIES as well as the recursive dependency names
# in beacon_positioning_RECURSIVE_DEPENDENCIES.
if(NOT _exported_dependencies STREQUAL "")
find_package(ament_cmake_core QUIET REQUIRED)
set(beacon_positioning_DEPENDENCIES ${_exported_dependencies})
set(beacon_positioning_RECURSIVE_DEPENDENCIES ${_exported_dependencies})
set(_libraries)
foreach(_dep ${_exported_dependencies})
if(NOT ${_dep}_FOUND)
find_package("${_dep}" QUIET REQUIRED)
endif()
# if a package provides modern CMake interface targets use them
# exclusively assuming the classic CMake variables only exist for
# backward compatibility
set(use_modern_cmake FALSE)
if(NOT "${${_dep}_TARGETS}" STREQUAL "")
foreach(_target ${${_dep}_TARGETS})
# only use actual targets
# in case a package uses this variable for other content
if(TARGET "${_target}")
get_target_property(_include_dirs ${_target} INTERFACE_INCLUDE_DIRECTORIES)
if(_include_dirs)
list_append_unique(beacon_positioning_INCLUDE_DIRS "${_include_dirs}")
endif()
get_target_property(_imported_configurations ${_target} IMPORTED_CONFIGURATIONS)
if(_imported_configurations)
string(TOUPPER "${_imported_configurations}" _imported_configurations)
if(DEBUG_CONFIGURATIONS)
string(TOUPPER "${DEBUG_CONFIGURATIONS}" _debug_configurations_uppercase)
else()
set(_debug_configurations_uppercase "DEBUG")
endif()
foreach(_imported_config ${_imported_configurations})
get_target_property(_imported_implib ${_target} IMPORTED_IMPLIB_${_imported_config})
if(_imported_implib)
set(_imported_implib_config "optimized")
if(${_imported_config} IN_LIST _debug_configurations_uppercase)
set(_imported_implib_config "debug")
endif()
list(APPEND _libraries ${_imported_implib_config} ${_imported_implib})
else()
get_target_property(_imported_location ${_target} IMPORTED_LOCATION_${_imported_config})
if(_imported_location)
list(APPEND _libraries "${_imported_location}")
endif()
endif()
endforeach()
endif()
get_target_property(_link_libraries ${_target} INTERFACE_LINK_LIBRARIES)
if(_link_libraries)
list(APPEND _libraries "${_link_libraries}")
endif()
set(use_modern_cmake TRUE)
endif()
endforeach()
endif()
if(NOT use_modern_cmake)
if(${_dep}_DEFINITIONS)
list_append_unique(beacon_positioning_DEFINITIONS "${${_dep}_DEFINITIONS}")
endif()
if(${_dep}_INCLUDE_DIRS)
list_append_unique(beacon_positioning_INCLUDE_DIRS "${${_dep}_INCLUDE_DIRS}")
endif()
if(${_dep}_LIBRARIES)
list(APPEND _libraries "${${_dep}_LIBRARIES}")
endif()
if(${_dep}_LINK_FLAGS)
list_append_unique(beacon_positioning_LINK_FLAGS "${${_dep}_LINK_FLAGS}")
endif()
if(${_dep}_RECURSIVE_DEPENDENCIES)
list_append_unique(beacon_positioning_RECURSIVE_DEPENDENCIES "${${_dep}_RECURSIVE_DEPENDENCIES}")
endif()
endif()
if(_libraries)
ament_libraries_deduplicate(_libraries "${_libraries}")
list(APPEND beacon_positioning_LIBRARIES "${_libraries}")
endif()
endforeach()
endif()

View File

@@ -0,0 +1,16 @@
# generated from ament_cmake_export_include_directories/cmake/ament_cmake_export_include_directories-extras.cmake.in
set(_exported_include_dirs "${beacon_positioning_DIR}/../../../include")
# append include directories to beacon_positioning_INCLUDE_DIRS
# warn about not existing paths
if(NOT _exported_include_dirs STREQUAL "")
find_package(ament_cmake_core QUIET REQUIRED)
foreach(_exported_include_dir ${_exported_include_dirs})
if(NOT IS_DIRECTORY "${_exported_include_dir}")
message(WARNING "Package 'beacon_positioning' exports the include directory '${_exported_include_dir}' which doesn't exist")
endif()
normalize_path(_exported_include_dir "${_exported_include_dir}")
list(APPEND beacon_positioning_INCLUDE_DIRS "${_exported_include_dir}")
endforeach()
endif()

View File

@@ -0,0 +1,140 @@
# generated from ament_cmake_export_libraries/cmake/template/ament_cmake_export_libraries.cmake.in
set(_exported_libraries "beacon_positioning__rosidl_generator_c;beacon_positioning__rosidl_typesupport_c;beacon_positioning__rosidl_typesupport_cpp")
set(_exported_library_names "")
# populate beacon_positioning_LIBRARIES
if(NOT _exported_libraries STREQUAL "")
# loop over libraries, either target names or absolute paths
list(LENGTH _exported_libraries _length)
set(_i 0)
while(_i LESS _length)
list(GET _exported_libraries ${_i} _arg)
# pass linker flags along
if("${_arg}" MATCHES "^-" AND NOT "${_arg}" MATCHES "^-[l|framework]")
list(APPEND beacon_positioning_LIBRARIES "${_arg}")
math(EXPR _i "${_i} + 1")
continue()
endif()
if("${_arg}" MATCHES "^(debug|optimized|general)$")
# remember build configuration keyword
# and get following library
set(_cfg "${_arg}")
math(EXPR _i "${_i} + 1")
if(_i EQUAL _length)
message(FATAL_ERROR "Package 'beacon_positioning' passes the build configuration keyword '${_cfg}' as the last exported library")
endif()
list(GET _exported_libraries ${_i} _library)
else()
# the value is a library without a build configuration keyword
set(_cfg "")
set(_library "${_arg}")
endif()
math(EXPR _i "${_i} + 1")
if(NOT IS_ABSOLUTE "${_library}")
# search for library target relative to this CMake file
set(_lib "NOTFOUND")
find_library(
_lib NAMES "${_library}"
PATHS "${beacon_positioning_DIR}/../../../lib"
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
if(NOT _lib)
# warn about not existing library and ignore it
message(FATAL_ERROR "Package 'beacon_positioning' exports the library '${_library}' which couldn't be found")
elseif(NOT IS_ABSOLUTE "${_lib}")
# the found library must be an absolute path
message(FATAL_ERROR "Package 'beacon_positioning' found the library '${_library}' at '${_lib}' which is not an absolute path")
elseif(NOT EXISTS "${_lib}")
# the found library must exist
message(FATAL_ERROR "Package 'beacon_positioning' found the library '${_lib}' which doesn't exist")
else()
list(APPEND beacon_positioning_LIBRARIES ${_cfg} "${_lib}")
endif()
else()
if(NOT EXISTS "${_library}")
# the found library must exist
message(WARNING "Package 'beacon_positioning' exports the library '${_library}' which doesn't exist")
else()
list(APPEND beacon_positioning_LIBRARIES ${_cfg} "${_library}")
endif()
endif()
endwhile()
endif()
# find_library() library names with optional LIBRARY_DIRS
# and add the libraries to beacon_positioning_LIBRARIES
if(NOT _exported_library_names STREQUAL "")
# loop over library names
# but remember related build configuration keyword if available
list(LENGTH _exported_library_names _length)
set(_i 0)
while(_i LESS _length)
list(GET _exported_library_names ${_i} _arg)
# pass linker flags along
if("${_arg}" MATCHES "^-" AND NOT "${_arg}" MATCHES "^-[l|framework]")
list(APPEND beacon_positioning_LIBRARIES "${_arg}")
math(EXPR _i "${_i} + 1")
continue()
endif()
if("${_arg}" MATCHES "^(debug|optimized|general)$")
# remember build configuration keyword
# and get following library name
set(_cfg "${_arg}")
math(EXPR _i "${_i} + 1")
if(_i EQUAL _length)
message(FATAL_ERROR "Package 'beacon_positioning' passes the build configuration keyword '${_cfg}' as the last exported target")
endif()
list(GET _exported_library_names ${_i} _library)
else()
# the value is a library target without a build configuration keyword
set(_cfg "")
set(_library "${_arg}")
endif()
math(EXPR _i "${_i} + 1")
# extract optional LIBRARY_DIRS from library name
string(REPLACE ":" ";" _library_dirs "${_library}")
list(GET _library_dirs 0 _library_name)
list(REMOVE_AT _library_dirs 0)
set(_lib "NOTFOUND")
if(NOT _library_dirs)
# search for library in the common locations
find_library(
_lib
NAMES "${_library_name}"
)
if(NOT _lib)
# warn about not existing library and later ignore it
message(WARNING "Package 'beacon_positioning' exports library '${_library_name}' which couldn't be found")
endif()
else()
# search for library in the specified directories
find_library(
_lib
NAMES "${_library_name}"
PATHS ${_library_dirs}
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
if(NOT _lib)
# warn about not existing library and later ignore it
message(WARNING "Package 'beacon_positioning' exports library '${_library_name}' with LIBRARY_DIRS '${_library_dirs}' which couldn't be found")
endif()
endif()
if(_lib)
list(APPEND beacon_positioning_LIBRARIES ${_cfg} "${_lib}")
endif()
endwhile()
endif()
# TODO(dirk-thomas) deduplicate beacon_positioning_LIBRARIES
# while maintaining library order
# as well as build configuration keywords
# as well as linker flags

View File

@@ -0,0 +1,27 @@
# generated from ament_cmake_export_targets/cmake/ament_cmake_export_targets-extras.cmake.in
set(_exported_targets "beacon_positioning__rosidl_generator_c;beacon_positioning__rosidl_typesupport_introspection_c;beacon_positioning__rosidl_typesupport_c;beacon_positioning__rosidl_generator_cpp;beacon_positioning__rosidl_typesupport_introspection_cpp;beacon_positioning__rosidl_typesupport_cpp")
# include all exported targets
if(NOT _exported_targets STREQUAL "")
foreach(_target ${_exported_targets})
set(_export_file "${beacon_positioning_DIR}/${_target}Export.cmake")
include("${_export_file}")
# extract the target names associated with the export
set(_regex "foreach\\((_cmake)?_expected_?[Tt]arget (IN ITEMS )?(.+)\\)")
file(
STRINGS "${_export_file}" _foreach_targets
REGEX "${_regex}")
list(LENGTH _foreach_targets _matches)
if(NOT _matches EQUAL 1)
message(FATAL_ERROR
"Failed to find exported target names in '${_export_file}'")
endif()
string(REGEX REPLACE "${_regex}" "\\3" _targets "${_foreach_targets}")
string(REPLACE " " ";" _targets "${_targets}")
list(LENGTH _targets _length)
list(APPEND beacon_positioning_TARGETS ${_targets})
endforeach()
endif()

View File

@@ -0,0 +1,14 @@
# generated from ament/cmake/core/templates/nameConfig-version.cmake.in
set(PACKAGE_VERSION "0.0.0")
set(PACKAGE_VERSION_EXACT False)
set(PACKAGE_VERSION_COMPATIBLE False)
if("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}")
set(PACKAGE_VERSION_EXACT True)
set(PACKAGE_VERSION_COMPATIBLE True)
endif()
if("${PACKAGE_FIND_VERSION}" VERSION_LESS "${PACKAGE_VERSION}")
set(PACKAGE_VERSION_COMPATIBLE True)
endif()

View File

@@ -0,0 +1,42 @@
# generated from ament/cmake/core/templates/nameConfig.cmake.in
# prevent multiple inclusion
if(_beacon_positioning_CONFIG_INCLUDED)
# ensure to keep the found flag the same
if(NOT DEFINED beacon_positioning_FOUND)
# explicitly set it to FALSE, otherwise CMake will set it to TRUE
set(beacon_positioning_FOUND FALSE)
elseif(NOT beacon_positioning_FOUND)
# use separate condition to avoid uninitialized variable warning
set(beacon_positioning_FOUND FALSE)
endif()
return()
endif()
set(_beacon_positioning_CONFIG_INCLUDED TRUE)
# output package information
if(NOT beacon_positioning_FIND_QUIETLY)
message(STATUS "Found beacon_positioning: 0.0.0 (${beacon_positioning_DIR})")
endif()
# warn when using a deprecated package
if(NOT "" STREQUAL "")
set(_msg "Package 'beacon_positioning' is deprecated")
# append custom deprecation text if available
if(NOT "" STREQUAL "TRUE")
set(_msg "${_msg} ()")
endif()
# optionally quiet the deprecation message
if(NOT ${beacon_positioning_DEPRECATED_QUIET})
message(DEPRECATION "${_msg}")
endif()
endif()
# flag package as ament-based to distinguish it after being find_package()-ed
set(beacon_positioning_FOUND_AMENT_PACKAGE TRUE)
# include all config extra files
set(_extras "rosidl_cmake-extras.cmake;ament_cmake_export_dependencies-extras.cmake;ament_cmake_export_libraries-extras.cmake;ament_cmake_export_targets-extras.cmake;ament_cmake_export_include_directories-extras.cmake;rosidl_cmake_export_typesupport_libraries-extras.cmake;rosidl_cmake_export_typesupport_targets-extras.cmake")
foreach(_extra ${_extras})
include("${beacon_positioning_DIR}/${_extra}")
endforeach()

View File

@@ -0,0 +1,19 @@
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "beacon_positioning::beacon_positioning__rosidl_generator_c" for configuration ""
set_property(TARGET beacon_positioning::beacon_positioning__rosidl_generator_c APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_generator_c PROPERTIES
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_generator_c.so"
IMPORTED_SONAME_NOCONFIG "libbeacon_positioning__rosidl_generator_c.so"
)
list(APPEND _IMPORT_CHECK_TARGETS beacon_positioning::beacon_positioning__rosidl_generator_c )
list(APPEND _IMPORT_CHECK_FILES_FOR_beacon_positioning::beacon_positioning__rosidl_generator_c "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_generator_c.so" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

View File

@@ -0,0 +1,99 @@
# Generated by CMake
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
message(FATAL_ERROR "CMake >= 2.6.0 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.6)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_targetsDefined)
set(_targetsNotDefined)
set(_expectedTargets)
foreach(_expectedTarget beacon_positioning::beacon_positioning__rosidl_generator_c)
list(APPEND _expectedTargets ${_expectedTarget})
if(NOT TARGET ${_expectedTarget})
list(APPEND _targetsNotDefined ${_expectedTarget})
endif()
if(TARGET ${_expectedTarget})
list(APPEND _targetsDefined ${_expectedTarget})
endif()
endforeach()
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)
return()
endif()
if(NOT "${_targetsDefined}" STREQUAL "")
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
endif()
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
set(_IMPORT_PREFIX "")
endif()
# Create imported target beacon_positioning::beacon_positioning__rosidl_generator_c
add_library(beacon_positioning::beacon_positioning__rosidl_generator_c SHARED IMPORTED)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_generator_c PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "rosidl_runtime_c::rosidl_runtime_c;rosidl_typesupport_interface::rosidl_typesupport_interface;rcutils::rcutils"
)
if(CMAKE_VERSION VERSION_LESS 2.8.12)
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()
# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/beacon_positioning__rosidl_generator_cExport-*.cmake")
foreach(f ${CONFIG_FILES})
include(${f})
endforeach()
# Cleanup temporary variables.
set(_IMPORT_PREFIX)
# Loop over all imported files and verify that they actually exist
foreach(target ${_IMPORT_CHECK_TARGETS} )
foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
if(NOT EXISTS "${file}" )
message(FATAL_ERROR "The imported target \"${target}\" references the file
\"${file}\"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
\"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
endif()
endforeach()
unset(_IMPORT_CHECK_FILES_FOR_${target})
endforeach()
unset(_IMPORT_CHECK_TARGETS)
# This file does not depend on other imported targets which have
# been exported from the same project but in a separate export set.
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

View File

@@ -0,0 +1,99 @@
# Generated by CMake
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
message(FATAL_ERROR "CMake >= 2.6.0 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.6)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_targetsDefined)
set(_targetsNotDefined)
set(_expectedTargets)
foreach(_expectedTarget beacon_positioning::beacon_positioning__rosidl_generator_cpp)
list(APPEND _expectedTargets ${_expectedTarget})
if(NOT TARGET ${_expectedTarget})
list(APPEND _targetsNotDefined ${_expectedTarget})
endif()
if(TARGET ${_expectedTarget})
list(APPEND _targetsDefined ${_expectedTarget})
endif()
endforeach()
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)
return()
endif()
if(NOT "${_targetsDefined}" STREQUAL "")
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
endif()
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
set(_IMPORT_PREFIX "")
endif()
# Create imported target beacon_positioning::beacon_positioning__rosidl_generator_cpp
add_library(beacon_positioning::beacon_positioning__rosidl_generator_cpp INTERFACE IMPORTED)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_generator_cpp PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "rosidl_runtime_cpp::rosidl_runtime_cpp"
)
if(CMAKE_VERSION VERSION_LESS 3.0.0)
message(FATAL_ERROR "This file relies on consumers using CMake 3.0.0 or greater.")
endif()
# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/beacon_positioning__rosidl_generator_cppExport-*.cmake")
foreach(f ${CONFIG_FILES})
include(${f})
endforeach()
# Cleanup temporary variables.
set(_IMPORT_PREFIX)
# Loop over all imported files and verify that they actually exist
foreach(target ${_IMPORT_CHECK_TARGETS} )
foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
if(NOT EXISTS "${file}" )
message(FATAL_ERROR "The imported target \"${target}\" references the file
\"${file}\"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
\"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
endif()
endforeach()
unset(_IMPORT_CHECK_FILES_FOR_${target})
endforeach()
unset(_IMPORT_CHECK_TARGETS)
# This file does not depend on other imported targets which have
# been exported from the same project but in a separate export set.
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

View File

@@ -0,0 +1,19 @@
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "beacon_positioning::beacon_positioning__rosidl_typesupport_c" for configuration ""
set_property(TARGET beacon_positioning::beacon_positioning__rosidl_typesupport_c APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_typesupport_c PROPERTIES
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_typesupport_c.so"
IMPORTED_SONAME_NOCONFIG "libbeacon_positioning__rosidl_typesupport_c.so"
)
list(APPEND _IMPORT_CHECK_TARGETS beacon_positioning::beacon_positioning__rosidl_typesupport_c )
list(APPEND _IMPORT_CHECK_FILES_FOR_beacon_positioning::beacon_positioning__rosidl_typesupport_c "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_typesupport_c.so" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

View File

@@ -0,0 +1,99 @@
# Generated by CMake
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
message(FATAL_ERROR "CMake >= 2.6.0 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.6)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_targetsDefined)
set(_targetsNotDefined)
set(_expectedTargets)
foreach(_expectedTarget beacon_positioning::beacon_positioning__rosidl_typesupport_c)
list(APPEND _expectedTargets ${_expectedTarget})
if(NOT TARGET ${_expectedTarget})
list(APPEND _targetsNotDefined ${_expectedTarget})
endif()
if(TARGET ${_expectedTarget})
list(APPEND _targetsDefined ${_expectedTarget})
endif()
endforeach()
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)
return()
endif()
if(NOT "${_targetsDefined}" STREQUAL "")
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
endif()
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
set(_IMPORT_PREFIX "")
endif()
# Create imported target beacon_positioning::beacon_positioning__rosidl_typesupport_c
add_library(beacon_positioning::beacon_positioning__rosidl_typesupport_c SHARED IMPORTED)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_typesupport_c PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "rosidl_runtime_c::rosidl_runtime_c;rosidl_typesupport_c::rosidl_typesupport_c;rosidl_typesupport_interface::rosidl_typesupport_interface"
)
if(CMAKE_VERSION VERSION_LESS 2.8.12)
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()
# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/beacon_positioning__rosidl_typesupport_cExport-*.cmake")
foreach(f ${CONFIG_FILES})
include(${f})
endforeach()
# Cleanup temporary variables.
set(_IMPORT_PREFIX)
# Loop over all imported files and verify that they actually exist
foreach(target ${_IMPORT_CHECK_TARGETS} )
foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
if(NOT EXISTS "${file}" )
message(FATAL_ERROR "The imported target \"${target}\" references the file
\"${file}\"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
\"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
endif()
endforeach()
unset(_IMPORT_CHECK_FILES_FOR_${target})
endforeach()
unset(_IMPORT_CHECK_TARGETS)
# This file does not depend on other imported targets which have
# been exported from the same project but in a separate export set.
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

View File

@@ -0,0 +1,19 @@
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "beacon_positioning::beacon_positioning__rosidl_typesupport_cpp" for configuration ""
set_property(TARGET beacon_positioning::beacon_positioning__rosidl_typesupport_cpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_typesupport_cpp PROPERTIES
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_typesupport_cpp.so"
IMPORTED_SONAME_NOCONFIG "libbeacon_positioning__rosidl_typesupport_cpp.so"
)
list(APPEND _IMPORT_CHECK_TARGETS beacon_positioning::beacon_positioning__rosidl_typesupport_cpp )
list(APPEND _IMPORT_CHECK_FILES_FOR_beacon_positioning::beacon_positioning__rosidl_typesupport_cpp "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_typesupport_cpp.so" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

View File

@@ -0,0 +1,99 @@
# Generated by CMake
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
message(FATAL_ERROR "CMake >= 2.6.0 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.6)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_targetsDefined)
set(_targetsNotDefined)
set(_expectedTargets)
foreach(_expectedTarget beacon_positioning::beacon_positioning__rosidl_typesupport_cpp)
list(APPEND _expectedTargets ${_expectedTarget})
if(NOT TARGET ${_expectedTarget})
list(APPEND _targetsNotDefined ${_expectedTarget})
endif()
if(TARGET ${_expectedTarget})
list(APPEND _targetsDefined ${_expectedTarget})
endif()
endforeach()
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)
return()
endif()
if(NOT "${_targetsDefined}" STREQUAL "")
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
endif()
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
set(_IMPORT_PREFIX "")
endif()
# Create imported target beacon_positioning::beacon_positioning__rosidl_typesupport_cpp
add_library(beacon_positioning::beacon_positioning__rosidl_typesupport_cpp SHARED IMPORTED)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_typesupport_cpp PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "rosidl_runtime_c::rosidl_runtime_c;rosidl_runtime_cpp::rosidl_runtime_cpp;rosidl_typesupport_cpp::rosidl_typesupport_cpp;rosidl_typesupport_interface::rosidl_typesupport_interface"
)
if(CMAKE_VERSION VERSION_LESS 2.8.12)
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()
# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/beacon_positioning__rosidl_typesupport_cppExport-*.cmake")
foreach(f ${CONFIG_FILES})
include(${f})
endforeach()
# Cleanup temporary variables.
set(_IMPORT_PREFIX)
# Loop over all imported files and verify that they actually exist
foreach(target ${_IMPORT_CHECK_TARGETS} )
foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
if(NOT EXISTS "${file}" )
message(FATAL_ERROR "The imported target \"${target}\" references the file
\"${file}\"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
\"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
endif()
endforeach()
unset(_IMPORT_CHECK_FILES_FOR_${target})
endforeach()
unset(_IMPORT_CHECK_TARGETS)
# This file does not depend on other imported targets which have
# been exported from the same project but in a separate export set.
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

View File

@@ -0,0 +1,19 @@
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_c" for configuration ""
set_property(TARGET beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_c APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_c PROPERTIES
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_typesupport_introspection_c.so"
IMPORTED_SONAME_NOCONFIG "libbeacon_positioning__rosidl_typesupport_introspection_c.so"
)
list(APPEND _IMPORT_CHECK_TARGETS beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_c )
list(APPEND _IMPORT_CHECK_FILES_FOR_beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_c "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_typesupport_introspection_c.so" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

View File

@@ -0,0 +1,114 @@
# Generated by CMake
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
message(FATAL_ERROR "CMake >= 2.6.0 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.6)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_targetsDefined)
set(_targetsNotDefined)
set(_expectedTargets)
foreach(_expectedTarget beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_c)
list(APPEND _expectedTargets ${_expectedTarget})
if(NOT TARGET ${_expectedTarget})
list(APPEND _targetsNotDefined ${_expectedTarget})
endif()
if(TARGET ${_expectedTarget})
list(APPEND _targetsDefined ${_expectedTarget})
endif()
endforeach()
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)
return()
endif()
if(NOT "${_targetsDefined}" STREQUAL "")
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
endif()
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
set(_IMPORT_PREFIX "")
endif()
# Create imported target beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_c
add_library(beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_c SHARED IMPORTED)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_c PROPERTIES
INTERFACE_LINK_LIBRARIES "beacon_positioning::beacon_positioning__rosidl_generator_c;rosidl_typesupport_introspection_c::rosidl_typesupport_introspection_c"
)
if(CMAKE_VERSION VERSION_LESS 2.8.12)
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()
# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/beacon_positioning__rosidl_typesupport_introspection_cExport-*.cmake")
foreach(f ${CONFIG_FILES})
include(${f})
endforeach()
# Cleanup temporary variables.
set(_IMPORT_PREFIX)
# Loop over all imported files and verify that they actually exist
foreach(target ${_IMPORT_CHECK_TARGETS} )
foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
if(NOT EXISTS "${file}" )
message(FATAL_ERROR "The imported target \"${target}\" references the file
\"${file}\"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
\"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
endif()
endforeach()
unset(_IMPORT_CHECK_FILES_FOR_${target})
endforeach()
unset(_IMPORT_CHECK_TARGETS)
# Make sure the targets which have been exported in some other
# export set exist.
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
foreach(_target "beacon_positioning::beacon_positioning__rosidl_generator_c" )
if(NOT TARGET "${_target}" )
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}")
endif()
endforeach()
if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
if(CMAKE_FIND_PACKAGE_NAME)
set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
set( ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
else()
message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
endif()
endif()
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

View File

@@ -0,0 +1,19 @@
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_cpp" for configuration ""
set_property(TARGET beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_cpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_cpp PROPERTIES
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_typesupport_introspection_cpp.so"
IMPORTED_SONAME_NOCONFIG "libbeacon_positioning__rosidl_typesupport_introspection_cpp.so"
)
list(APPEND _IMPORT_CHECK_TARGETS beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_cpp )
list(APPEND _IMPORT_CHECK_FILES_FOR_beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_cpp "${_IMPORT_PREFIX}/lib/libbeacon_positioning__rosidl_typesupport_introspection_cpp.so" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

View File

@@ -0,0 +1,98 @@
# Generated by CMake
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
message(FATAL_ERROR "CMake >= 2.6.0 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.6)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_targetsDefined)
set(_targetsNotDefined)
set(_expectedTargets)
foreach(_expectedTarget beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_cpp)
list(APPEND _expectedTargets ${_expectedTarget})
if(NOT TARGET ${_expectedTarget})
list(APPEND _targetsNotDefined ${_expectedTarget})
endif()
if(TARGET ${_expectedTarget})
list(APPEND _targetsDefined ${_expectedTarget})
endif()
endforeach()
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)
return()
endif()
if(NOT "${_targetsDefined}" STREQUAL "")
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
endif()
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
set(_IMPORT_PREFIX "")
endif()
# Create imported target beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_cpp
add_library(beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_cpp SHARED IMPORTED)
set_target_properties(beacon_positioning::beacon_positioning__rosidl_typesupport_introspection_cpp PROPERTIES
INTERFACE_LINK_LIBRARIES "rosidl_runtime_c::rosidl_runtime_c;rosidl_typesupport_interface::rosidl_typesupport_interface;rosidl_typesupport_introspection_cpp::rosidl_typesupport_introspection_cpp"
)
if(CMAKE_VERSION VERSION_LESS 2.8.12)
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()
# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/beacon_positioning__rosidl_typesupport_introspection_cppExport-*.cmake")
foreach(f ${CONFIG_FILES})
include(${f})
endforeach()
# Cleanup temporary variables.
set(_IMPORT_PREFIX)
# Loop over all imported files and verify that they actually exist
foreach(target ${_IMPORT_CHECK_TARGETS} )
foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
if(NOT EXISTS "${file}" )
message(FATAL_ERROR "The imported target \"${target}\" references the file
\"${file}\"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
\"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
endif()
endforeach()
unset(_IMPORT_CHECK_FILES_FOR_${target})
endforeach()
unset(_IMPORT_CHECK_TARGETS)
# This file does not depend on other imported targets which have
# been exported from the same project but in a separate export set.
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

View File

@@ -0,0 +1,4 @@
# generated from rosidl_cmake/cmake/rosidl_cmake-extras.cmake.in
set(beacon_positioning_IDL_FILES "msg/TrackerPosition.idl")
set(beacon_positioning_INTERFACE_FILES "msg/TrackerPosition.msg")

View File

@@ -0,0 +1,46 @@
# generated from
# rosidl_cmake/cmake/template/rosidl_cmake_export_typesupport_libraries.cmake.in
set(_exported_typesupport_libraries
"__rosidl_typesupport_fastrtps_c:beacon_positioning__rosidl_typesupport_fastrtps_c;__rosidl_typesupport_fastrtps_cpp:beacon_positioning__rosidl_typesupport_fastrtps_cpp")
# populate beacon_positioning_LIBRARIES_<suffix>
if(NOT _exported_typesupport_libraries STREQUAL "")
# loop over typesupport libraries
foreach(_tuple ${_exported_typesupport_libraries})
string(REPLACE ":" ";" _tuple "${_tuple}")
list(GET _tuple 0 _suffix)
list(GET _tuple 1 _library)
if(NOT IS_ABSOLUTE "${_library}")
# search for library target relative to this CMake file
set(_lib "NOTFOUND")
find_library(
_lib NAMES "${_library}"
PATHS "${beacon_positioning_DIR}/../../../lib"
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
if(NOT _lib)
# the library wasn't found
message(FATAL_ERROR "Package 'beacon_positioning' exports the typesupport library '${_library}' which couldn't be found")
elseif(NOT IS_ABSOLUTE "${_lib}")
# the found library must be an absolute path
message(FATAL_ERROR "Package 'beacon_positioning' found the typesupport library '${_library}' at '${_lib}' which is not an absolute path")
elseif(NOT EXISTS "${_lib}")
# the found library must exist
message(FATAL_ERROR "Package 'beacon_positioning' found the typesupport library '${_lib}' which doesn't exist")
else()
list(APPEND beacon_positioning_LIBRARIES${_suffix} ${_cfg} "${_lib}")
endif()
else()
if(NOT EXISTS "${_library}")
# the found library must exist
message(WARNING "Package 'beacon_positioning' exports the typesupport library '${_library}' which doesn't exist")
else()
list(APPEND beacon_positioning_LIBRARIES${_suffix} "${_library}")
endif()
endif()
endforeach()
endif()

View File

@@ -0,0 +1,23 @@
# generated from
# rosidl_cmake/cmake/template/rosidl_cmake_export_typesupport_targets.cmake.in
set(_exported_typesupport_targets
"__rosidl_typesupport_introspection_c:beacon_positioning__rosidl_typesupport_introspection_c;__rosidl_typesupport_introspection_cpp:beacon_positioning__rosidl_typesupport_introspection_cpp")
# populate beacon_positioning_TARGETS_<suffix>
if(NOT _exported_typesupport_targets STREQUAL "")
# loop over typesupport targets
foreach(_tuple ${_exported_typesupport_targets})
string(REPLACE ":" ";" _tuple "${_tuple}")
list(GET _tuple 0 _suffix)
list(GET _tuple 1 _target)
set(_target "beacon_positioning::${_target}")
if(NOT TARGET "${_target}")
# the exported target must exist
message(WARNING "Package 'beacon_positioning' exports the typesupport target '${_target}' which doesn't exist")
else()
list(APPEND beacon_positioning_TARGETS${_suffix} "${_target}")
endif()
endforeach()
endif()

View File

@@ -0,0 +1 @@
prepend-non-duplicate;AMENT_PREFIX_PATH;

View File

@@ -0,0 +1,4 @@
# copied from
# ament_cmake_core/cmake/environment_hooks/environment/ament_prefix_path.sh
ament_prepend_unique_value AMENT_PREFIX_PATH "$AMENT_CURRENT_PREFIX"

View File

@@ -0,0 +1 @@
prepend-non-duplicate;LD_LIBRARY_PATH;lib

View File

@@ -0,0 +1,16 @@
# copied from ament_package/template/environment_hook/library_path.sh
# detect if running on Darwin platform
_UNAME=`uname -s`
_IS_DARWIN=0
if [ "$_UNAME" = "Darwin" ]; then
_IS_DARWIN=1
fi
unset _UNAME
if [ $_IS_DARWIN -eq 0 ]; then
ament_prepend_unique_value LD_LIBRARY_PATH "$AMENT_CURRENT_PREFIX/lib"
else
ament_prepend_unique_value DYLD_LIBRARY_PATH "$AMENT_CURRENT_PREFIX/lib"
fi
unset _IS_DARWIN

View File

@@ -0,0 +1 @@
prepend-non-duplicate-if-exists;PATH;bin

View File

@@ -0,0 +1,5 @@
# copied from ament_cmake_core/cmake/environment_hooks/environment/path.sh
if [ -d "$AMENT_CURRENT_PREFIX/bin" ]; then
ament_prepend_unique_value PATH "$AMENT_CURRENT_PREFIX/bin"
fi

View File

@@ -0,0 +1 @@
prepend-non-duplicate;PYTHONPATH;lib/python3.8/site-packages

View File

@@ -0,0 +1,3 @@
# generated from ament_package/template/environment_hook/pythonpath.sh.in
ament_prepend_unique_value PYTHONPATH "$AMENT_CURRENT_PREFIX/lib/python3.8/site-packages"

View File

@@ -0,0 +1 @@
prepend-non-duplicate;CMAKE_PREFIX_PATH;

View File

@@ -0,0 +1,3 @@
# generated from colcon_powershell/shell/template/hook_prepend_value.ps1.em
colcon_prepend_unique_value CMAKE_PREFIX_PATH "$env:COLCON_CURRENT_PREFIX"

View File

@@ -0,0 +1,3 @@
# generated from colcon_core/shell/template/hook_prepend_value.sh.em
_colcon_prepend_unique_value CMAKE_PREFIX_PATH "$COLCON_CURRENT_PREFIX"

View File

@@ -0,0 +1 @@
prepend-non-duplicate;LD_LIBRARY_PATH;lib

View File

@@ -0,0 +1,3 @@
# generated from colcon_powershell/shell/template/hook_prepend_value.ps1.em
colcon_prepend_unique_value LD_LIBRARY_PATH "$env:COLCON_CURRENT_PREFIX\lib"

View File

@@ -0,0 +1,3 @@
# generated from colcon_core/shell/template/hook_prepend_value.sh.em
_colcon_prepend_unique_value LD_LIBRARY_PATH "$COLCON_CURRENT_PREFIX/lib"

View File

@@ -0,0 +1 @@
prepend-non-duplicate;PYTHONPATH;lib/python3.8/site-packages

View File

@@ -0,0 +1,3 @@
# generated from colcon_powershell/shell/template/hook_prepend_value.ps1.em
colcon_prepend_unique_value PYTHONPATH "$env:COLCON_CURRENT_PREFIX\lib/python3.8/site-packages"

View File

@@ -0,0 +1,3 @@
# generated from colcon_core/shell/template/hook_prepend_value.sh.em
_colcon_prepend_unique_value PYTHONPATH "$COLCON_CURRENT_PREFIX/lib/python3.8/site-packages"

View File

@@ -0,0 +1,27 @@
from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
return LaunchDescription([
Node(
package="beacon_positioning",
executable="tracker_position",
name="beacon_tracker_0",
namespace="tracker0",
parameters=[
{"tracker_serial_port": "/dev/ttyUSB0"}
]
),
Node(
package="beacon_positioning",
executable="tracker_position",
name="beacon_tracker_1",
namespace="tracker1",
output="screen",
emulate_tty=True,
parameters=[
{"tracker_serial_port": "/dev/ttyUSB1"}
]
)
])

View File

@@ -0,0 +1,46 @@
# generated from ament_package/template/package_level/local_setup.bash.in
# source local_setup.sh from same directory as this file
_this_path=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" && pwd)
# provide AMENT_CURRENT_PREFIX to shell script
AMENT_CURRENT_PREFIX=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`/../.." && pwd)
# store AMENT_CURRENT_PREFIX to restore it before each environment hook
_package_local_setup_AMENT_CURRENT_PREFIX=$AMENT_CURRENT_PREFIX
# trace output
if [ -n "$AMENT_TRACE_SETUP_FILES" ]; then
echo "# . \"$_this_path/local_setup.sh\""
fi
. "$_this_path/local_setup.sh"
unset _this_path
# unset AMENT_ENVIRONMENT_HOOKS
# if not appending to them for return
if [ -z "$AMENT_RETURN_ENVIRONMENT_HOOKS" ]; then
unset AMENT_ENVIRONMENT_HOOKS
fi
# restore AMENT_CURRENT_PREFIX before evaluating the environment hooks
AMENT_CURRENT_PREFIX=$_package_local_setup_AMENT_CURRENT_PREFIX
# list all environment hooks of this package
# source all shell-specific environment hooks of this package
# if not returning them
if [ -z "$AMENT_RETURN_ENVIRONMENT_HOOKS" ]; then
_package_local_setup_IFS=$IFS
IFS=":"
for _hook in $AMENT_ENVIRONMENT_HOOKS; do
# restore AMENT_CURRENT_PREFIX for each environment hook
AMENT_CURRENT_PREFIX=$_package_local_setup_AMENT_CURRENT_PREFIX
# restore IFS before sourcing other files
IFS=$_package_local_setup_IFS
. "$_hook"
done
unset _hook
IFS=$_package_local_setup_IFS
unset _package_local_setup_IFS
unset AMENT_ENVIRONMENT_HOOKS
fi
unset _package_local_setup_AMENT_CURRENT_PREFIX
unset AMENT_CURRENT_PREFIX

View File

@@ -0,0 +1,4 @@
source;share/beacon_positioning/environment/ament_prefix_path.sh
source;share/beacon_positioning/environment/library_path.sh
source;share/beacon_positioning/environment/path.sh
source;share/beacon_positioning/environment/pythonpath.sh

View File

@@ -0,0 +1,135 @@
# generated from ament_package/template/package_level/local_setup.sh.in
# since this file is sourced use either the provided AMENT_CURRENT_PREFIX
# or fall back to the destination set at configure time
: ${AMENT_CURRENT_PREFIX:="/home/ubuntu/ros2_ws/install/beacon_positioning"}
if [ ! -d "$AMENT_CURRENT_PREFIX" ]; then
if [ -z "$COLCON_CURRENT_PREFIX" ]; then
echo "The compile time prefix path '$AMENT_CURRENT_PREFIX' doesn't " \
"exist. Consider sourcing a different extension than '.sh'." 1>&2
else
AMENT_CURRENT_PREFIX="$COLCON_CURRENT_PREFIX"
fi
fi
# function to append values to environment variables
# using colons as separators and avoiding leading separators
ament_append_value() {
# arguments
_listname="$1"
_value="$2"
#echo "listname $_listname"
#eval echo "list value \$$_listname"
#echo "value $_value"
# avoid leading separator
eval _values=\"\$$_listname\"
if [ -z "$_values" ]; then
eval export $_listname=\"$_value\"
#eval echo "set list \$$_listname"
else
# field separator must not be a colon
_ament_append_value_IFS=$IFS
unset IFS
eval export $_listname=\"\$$_listname:$_value\"
#eval echo "append list \$$_listname"
IFS=$_ament_append_value_IFS
unset _ament_append_value_IFS
fi
unset _values
unset _value
unset _listname
}
# function to prepend non-duplicate values to environment variables
# using colons as separators and avoiding trailing separators
ament_prepend_unique_value() {
# arguments
_listname="$1"
_value="$2"
#echo "listname $_listname"
#eval echo "list value \$$_listname"
#echo "value $_value"
# check if the list contains the value
eval _values=\"\$$_listname\"
_duplicate=
_ament_prepend_unique_value_IFS=$IFS
IFS=":"
if [ "$AMENT_SHELL" = "zsh" ]; then
ament_zsh_to_array _values
fi
for _item in $_values; do
# ignore empty strings
if [ -z "$_item" ]; then
continue
fi
if [ "$_item" = "$_value" ]; then
_duplicate=1
fi
done
unset _item
# prepend only non-duplicates
if [ -z "$_duplicate" ]; then
# avoid trailing separator
if [ -z "$_values" ]; then
eval export $_listname=\"$_value\"
#eval echo "set list \$$_listname"
else
# field separator must not be a colon
unset IFS
eval export $_listname=\"$_value:\$$_listname\"
#eval echo "prepend list \$$_listname"
fi
fi
IFS=$_ament_prepend_unique_value_IFS
unset _ament_prepend_unique_value_IFS
unset _duplicate
unset _values
unset _value
unset _listname
}
# unset AMENT_ENVIRONMENT_HOOKS
# if not appending to them for return
if [ -z "$AMENT_RETURN_ENVIRONMENT_HOOKS" ]; then
unset AMENT_ENVIRONMENT_HOOKS
fi
# list all environment hooks of this package
ament_append_value AMENT_ENVIRONMENT_HOOKS "$AMENT_CURRENT_PREFIX/share/beacon_positioning/environment/ament_prefix_path.sh"
ament_append_value AMENT_ENVIRONMENT_HOOKS "$AMENT_CURRENT_PREFIX/share/beacon_positioning/environment/library_path.sh"
ament_append_value AMENT_ENVIRONMENT_HOOKS "$AMENT_CURRENT_PREFIX/share/beacon_positioning/environment/path.sh"
ament_append_value AMENT_ENVIRONMENT_HOOKS "$AMENT_CURRENT_PREFIX/share/beacon_positioning/environment/pythonpath.sh"
# source all shell-specific environment hooks of this package
# if not returning them
if [ -z "$AMENT_RETURN_ENVIRONMENT_HOOKS" ]; then
_package_local_setup_IFS=$IFS
IFS=":"
if [ "$AMENT_SHELL" = "zsh" ]; then
ament_zsh_to_array AMENT_ENVIRONMENT_HOOKS
fi
for _hook in $AMENT_ENVIRONMENT_HOOKS; do
if [ -f "$_hook" ]; then
# restore IFS before sourcing other files
IFS=$_package_local_setup_IFS
# trace output
if [ -n "$AMENT_TRACE_SETUP_FILES" ]; then
echo "# . \"$_hook\""
fi
. "$_hook"
fi
done
unset _hook
IFS=$_package_local_setup_IFS
unset _package_local_setup_IFS
unset AMENT_ENVIRONMENT_HOOKS
fi
# reset AMENT_CURRENT_PREFIX after each package
# allowing to source multiple package-level setup files
unset AMENT_CURRENT_PREFIX

View File

@@ -0,0 +1,59 @@
# generated from ament_package/template/package_level/local_setup.zsh.in
AMENT_SHELL=zsh
# source local_setup.sh from same directory as this file
_this_path=$(builtin cd -q "`dirname "${(%):-%N}"`" > /dev/null && pwd)
# provide AMENT_CURRENT_PREFIX to shell script
AMENT_CURRENT_PREFIX=$(builtin cd -q "`dirname "${(%):-%N}"`/../.." > /dev/null && pwd)
# store AMENT_CURRENT_PREFIX to restore it before each environment hook
_package_local_setup_AMENT_CURRENT_PREFIX=$AMENT_CURRENT_PREFIX
# function to convert array-like strings into arrays
# to wordaround SH_WORD_SPLIT not being set
ament_zsh_to_array() {
local _listname=$1
local _dollar="$"
local _split="{="
local _to_array="(\"$_dollar$_split$_listname}\")"
eval $_listname=$_to_array
}
# trace output
if [ -n "$AMENT_TRACE_SETUP_FILES" ]; then
echo "# . \"$_this_path/local_setup.sh\""
fi
# the package-level local_setup file unsets AMENT_CURRENT_PREFIX
. "$_this_path/local_setup.sh"
unset _this_path
# unset AMENT_ENVIRONMENT_HOOKS
# if not appending to them for return
if [ -z "$AMENT_RETURN_ENVIRONMENT_HOOKS" ]; then
unset AMENT_ENVIRONMENT_HOOKS
fi
# restore AMENT_CURRENT_PREFIX before evaluating the environment hooks
AMENT_CURRENT_PREFIX=$_package_local_setup_AMENT_CURRENT_PREFIX
# list all environment hooks of this package
# source all shell-specific environment hooks of this package
# if not returning them
if [ -z "$AMENT_RETURN_ENVIRONMENT_HOOKS" ]; then
_package_local_setup_IFS=$IFS
IFS=":"
for _hook in $AMENT_ENVIRONMENT_HOOKS; do
# restore AMENT_CURRENT_PREFIX for each environment hook
AMENT_CURRENT_PREFIX=$_package_local_setup_AMENT_CURRENT_PREFIX
# restore IFS before sourcing other files
IFS=$_package_local_setup_IFS
. "$_hook"
done
unset _hook
IFS=$_package_local_setup_IFS
unset _package_local_setup_IFS
unset AMENT_ENVIRONMENT_HOOKS
fi
unset _package_local_setup_AMENT_CURRENT_PREFIX
unset AMENT_CURRENT_PREFIX

View File

@@ -0,0 +1,21 @@
// generated from rosidl_adapter/resource/msg.idl.em
// with input from beacon_positioning/msg/TrackerPosition.msg
// generated code does not contain a copyright notice
module beacon_positioning {
module msg {
typedef int64 int64__4[4];
struct TrackerPosition {
int32 id;
int64 x_pos;
int64 y_pos;
int64 z_pos;
int64__4 anchor_distances;
};
};
};

View File

@@ -0,0 +1,5 @@
int32 id
int64 x_pos
int64 y_pos
int64 z_pos
int64[4] anchor_distances

View File

@@ -1,3 +1,12 @@
source;share/beacon_positioning/hook/cmake_prefix_path.ps1
source;share/beacon_positioning/hook/cmake_prefix_path.dsv
source;share/beacon_positioning/hook/cmake_prefix_path.sh
source;share/beacon_positioning/hook/ld_library_path_lib.ps1
source;share/beacon_positioning/hook/ld_library_path_lib.dsv
source;share/beacon_positioning/hook/ld_library_path_lib.sh
source;share/beacon_positioning/hook/pythonpath.ps1
source;share/beacon_positioning/hook/pythonpath.dsv
source;share/beacon_positioning/hook/pythonpath.sh
source;share/beacon_positioning/local_setup.bash
source;share/beacon_positioning/local_setup.dsv
source;share/beacon_positioning/local_setup.ps1

View File

@@ -110,6 +110,9 @@ function colcon_package_source_powershell_script {
# the prefix is two levels up from the package specific share directory
$env:COLCON_CURRENT_PREFIX=(Get-Item $PSCommandPath).Directory.Parent.Parent.FullName
colcon_package_source_powershell_script "$env:COLCON_CURRENT_PREFIX\share/beacon_positioning/hook/cmake_prefix_path.ps1"
colcon_package_source_powershell_script "$env:COLCON_CURRENT_PREFIX\share/beacon_positioning/hook/ld_library_path_lib.ps1"
colcon_package_source_powershell_script "$env:COLCON_CURRENT_PREFIX\share/beacon_positioning/hook/pythonpath.ps1"
colcon_package_source_powershell_script "$env:COLCON_CURRENT_PREFIX\share/beacon_positioning/local_setup.ps1"
Remove-Item Env:\COLCON_CURRENT_PREFIX

View File

@@ -78,6 +78,9 @@ _colcon_package_sh_source_script() {
}
# source sh hooks
_colcon_package_sh_source_script "$COLCON_CURRENT_PREFIX/share/beacon_positioning/hook/cmake_prefix_path.sh"
_colcon_package_sh_source_script "$COLCON_CURRENT_PREFIX/share/beacon_positioning/hook/ld_library_path_lib.sh"
_colcon_package_sh_source_script "$COLCON_CURRENT_PREFIX/share/beacon_positioning/hook/pythonpath.sh"
_colcon_package_sh_source_script "$COLCON_CURRENT_PREFIX/share/beacon_positioning/local_setup.sh"
unset _colcon_package_sh_source_script

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>beacon_positioning</name>
<version>0.0.0</version>
<description>ROS 2 package to read the Terabee Robot Positioning System beacons positions</description>
<maintainer email="semmer99@gmail.com">sem</maintainer>
<license>Apache License 2.0</license>
<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>
<exec_depend>rosidl_default_runtime</exec_depend>
<depend>rclcpp</depend>
<depend>std_msgs</depend>
<member_of_group>rosidl_interface_packages</member_of_group>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<export>
<build_type>ament_cmake</build_type>
</export>
</package>