-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Hemker
committed
Jul 5, 2017
1 parent
82ed730
commit 9dc3301
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
|
||
namespace wrappers | ||
{ | ||
struct Index | ||
{ | ||
int x; | ||
int y; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* Generated from orogen/lib/orogen/templates/typekit/Opaques.cpp */ | ||
|
||
#include <envire_maps/typekit/OpaqueTypes.hpp> | ||
#include <envire_maps/typekit/Opaques.hpp> | ||
|
||
/** Returns the intermediate value that is contained in \c real_type */ | ||
/** Stores \c intermediate into \c real_type. \c intermediate is owned by \c | ||
* real_type afterwards. */ | ||
/** Release ownership of \c real_type on the corresponding intermediate | ||
* pointer. | ||
*/ | ||
|
||
|
||
void orogen_typekits::toIntermediate(::wrappers::Index& intermediate, ::maps::grid::Index const& real_type) | ||
{ | ||
intermediate.x = real_type(0, 0); | ||
intermediate.y = real_type(0, 1); | ||
} | ||
|
||
void orogen_typekits::fromIntermediate(::maps::grid::Index& real_type, ::wrappers::Index const& intermediate) | ||
{ | ||
real_type(0, 0) = intermediate.x; | ||
real_type(0, 1) = intermediate.y; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* Generated from orogen/lib/orogen/templates/typekit/Opaques.hpp */ | ||
|
||
#ifndef __OROGEN_GENERATED_envire_maps_USER_MARSHALLING_HH | ||
#define __OROGEN_GENERATED_envire_maps_USER_MARSHALLING_HH | ||
|
||
#include <envire_maps/typekit/OpaqueFwd.hpp> | ||
|
||
namespace orogen_typekits | ||
{ | ||
|
||
/** Converts \c real_type into \c intermediate */ | ||
void toIntermediate(::wrappers::Index& intermediate, ::maps::grid::Index const& real_type); | ||
/** Converts \c intermediate into \c real_type */ | ||
void fromIntermediate(::maps::grid::Index& real_type, ::wrappers::Index const& intermediate); | ||
|
||
|
||
} | ||
|
||
#endif | ||
|