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

Tests serialization of tesseract_scene_graph. 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_scene_graph/graph.h>
#include <tesseract_scene_graph/joint.h>
#include <tesseract_scene_graph/link.h>
#include <tesseract_scene_graph/scene_state.h>
Include dependency graph for tesseract_scene_graph_serialization_unit.cpp:

Functions

object parent_to_joint_origin_transform translate (Eigen::Vector3d(5.5, 6.6, 7.7))
 
object origin translate (Eigen::Vector3d(5.6, 7.8, -1.7))
 
object visual push_back (std::make_shared< Visual >())
 
object visual push_back (vis)
 
object collision push_back (std::make_shared< Collision >())
 
object collision push_back (col)
 
tesseract_scene_graph::SceneGraph createTestSceneGraph ()
 
object link_transforms["link_transforms_key"] setIdentity ()
 
object link_transforms["link_transforms_key"] translate (Eigen::Vector3d(1, 2, 3))
 
object joint_transforms["joint_transforms_key"] translate (Eigen::Vector3d(5, 6, 7))
 
int main (int argc, char **argv)
 

Variables

tesseract_common::testSerialization< JointDynamics > * object
 
object type = JointType::PLANAR
 
object axis = Eigen::Vector3d(1.1, 2.2, 3.3)
 
object child_link_name = "child_name"
 
object parent_link_name = "parent_name"
 
object dynamics = std::make_shared<JointDynamics>(1.1, 2.2)
 
object limits = std::make_shared<JointLimits>(1.1, 2.2, 3.3, 4.4, 5.5)
 
object safety = std::make_shared<JointSafety>(1.1, 2.2, 3.3, 4.4)
 
object calibration = std::make_shared<JointCalibration>(1.1, 2.2, 3.3)
 
object mimic = std::make_shared<JointMimic>(1.1, 2.2, "mimic_name")
 
object color = Eigen::Vector4d(0.1, 0.2, 0.3, 1.0)
 
object texture_filename = "test_filename"
 
object mass = 1.2
 
object ixx = 2.3
 
object ixy = 3.4
 
object ixz = 4.5
 
object iyy = 5.6
 
object iyz = 6.7
 
object izz = 7.8
 
object geometry = std::make_shared<tesseract_geometry::Cone>(1.1, 2.2)
 
object material = std::make_shared<Material>("test_name")
 
object name = "visual_name"
 
object inertial = std::make_shared<Inertial>()
 
auto vis = std::make_shared<Visual>()
 
auto col = std::make_shared<Collision>()
 
object joints ["j_1"] = 12.3
 

Detailed Description

Tests serialization of tesseract_scene_graph.

Author
Levi Armstrong
Matthew Powelson
Date
March 18, 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

◆ createTestSceneGraph()

tesseract_scene_graph::SceneGraph createTestSceneGraph ( )

◆ main()

int main ( int  argc,
char **  argv 
)

◆ push_back() [1/4]

object collision push_back ( col  )

◆ push_back() [2/4]

object collision push_back ( std::make_shared< Collision ())

◆ push_back() [3/4]

object visual push_back ( std::make_shared< Visual ())

◆ push_back() [4/4]

object visual push_back ( vis  )

◆ setIdentity()

object link_transforms["link_transforms_key"] setIdentity ( )

◆ translate() [1/4]

object link_transforms["link_transforms_key"] translate ( Eigen::Vector3d(1, 2, 3)  )

◆ translate() [2/4]

object joint_transforms["joint_transforms_key"] translate ( Eigen::Vector3d(5, 6, 7)  )

◆ translate() [3/4]

vis origin translate ( Eigen::Vector3d(5.5, 6.6, 7.7)  )
Initial value:
{
auto object = std::make_shared<Inertial>()

◆ translate() [4/4]

col origin translate ( Eigen::Vector3d(5.6, 7.8, -1.7)  )

Variable Documentation

◆ axis

object axis = Eigen::Vector3d(1.1, 2.2, 3.3)

◆ calibration

object calibration = std::make_shared<JointCalibration>(1.1, 2.2, 3.3)

◆ child_link_name

joint_tool0 child_link_name = "child_name"

◆ col

auto col = std::make_shared<Collision>()

◆ color

object color = Eigen::Vector4d(0.1, 0.2, 0.3, 1.0)

◆ dynamics

object dynamics = std::make_shared<JointDynamics>(1.1, 2.2)

◆ geometry

col geometry = std::make_shared<tesseract_geometry::Cone>(1.1, 2.2)

◆ inertial

object inertial = std::make_shared<Inertial>()

◆ ixx

object ixx = 2.3

◆ ixy

object ixy = 3.4

◆ ixz

object ixz = 4.5

◆ iyy

object iyy = 5.6

◆ iyz

object iyz = 6.7

◆ izz

object izz = 7.8

◆ joints

object joints = 12.3

◆ limits

object limits = std::make_shared<JointLimits>(1.1, 2.2, 3.3, 4.4, 5.5)

◆ mass

object mass = 1.2

◆ material

vis material = std::make_shared<Material>("test_name")

◆ mimic

object mimic = std::make_shared<JointMimic>(1.1, 2.2, "mimic_name")

◆ name

col name = "visual_name"

◆ object

Initial value:
{
auto object = std::make_shared<JointDynamics>(1.1, 2.2)

◆ parent_link_name

joint_tool0 parent_link_name = "parent_name"

◆ safety

object safety = std::make_shared<JointSafety>(1.1, 2.2, 3.3, 4.4)

◆ texture_filename

object texture_filename = "test_filename"

◆ type

object type = JointType::PLANAR

◆ vis

auto vis = std::make_shared<Visual>()