Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Functions | Variables
tesseract_geometry_serialization_unit.cpp File Reference

Tests serialization of geometry. More...

#include <tesseract_common/macros.h>
#include <gtest/gtest.h>
#include <boost/serialization/shared_ptr.hpp>
#include <tesseract_common/serialization.h>
#include <tesseract_common/unit_test_utils.h>
#include <tesseract_common/utils.h>
#include <tesseract_geometry/geometries.h>
#include <tesseract_geometry/mesh_parser.h>
#include <tesseract_support/tesseract_support_resource_locator.h>
Include dependency graph for tesseract_geometry_serialization_unit.cpp:

Functions

pc points emplace_back (.5, 0.5, 0.5)
 
pc points emplace_back (-.5, -0.5, -0.5)
 
pc points emplace_back (-.5, 0.5, 0.5)
 
int main (int argc, char **argv)
 

Variables

tesseract_common::testSerialization< Box > * object
 
tesseract_common::TesseractSupportResourceLocator locator
 
TestPointCloud pc
 

Detailed Description

Tests serialization of geometry.

Author
Levi Armstrong
Matthew Powelson
Date
March 16, 2022
Version
TODO
Bug:
No known bugs
License
Software License Agreement (Apache License)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ emplace_back() [1/3]

pc points emplace_back ( -.  5,
-0.  5,
-0.  5 
)

◆ emplace_back() [2/3]

pc points emplace_back ( -.  5,
0.  5,
0.  5 
)

◆ emplace_back() [3/3]

pc points emplace_back ( 5,
0.  5,
0.  5 
)

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ locator

Initial value:
{
std::string path = std::string(TESSERACT_SUPPORT_DIR) + "/meshes/sphere_p25m.stl"
tesseract_common::fs::path path
Definition: tesseract_srdf_unit.cpp:1992

◆ object

Initial value:
{
auto object = std::make_shared<Box>(1, 2, 3)

◆ pc

Initial value:
{
{
struct point
{
point(double x, double y, double z) : x(x), y(y), z(z) {}
double x;
double y;
double z;
};
std::vector<point> points;
}
double x
Definition: tesseract_geometry_unit.cpp:35
double z
Definition: tesseract_geometry_unit.cpp:37
double y
Definition: tesseract_geometry_unit.cpp:36
Definition: tesseract_geometry_unit.cpp:32
std::vector< point > points
Definition: tesseract_geometry_unit.cpp:40