RobWorkProject  24.5.15-
Classes | Static Public Member Functions | List of all members
DOMTrajectorySaver Class Reference

Class for saving trajectories to file. More...

#include <DOMTrajectorySaver.hpp>

Classes

class  Initializer
 Utility class which initializes local static variables. More...
 

Static Public Member Functions

static bool save (const rw::trajectory::QTrajectory &trajectory, const std::string &filename)
 Saves the QTrajectory trajectory to file. More...
 
static bool save (const rw::trajectory::Vector3DTrajectory &trajectory, const std::string &filename)
 Saves the Vector3DTrajectory trajectory to file. More...
 
static bool save (const rw::trajectory::Rotation3DTrajectory &trajectory, const std::string &filename)
 Saves the Rotation3DTrajectory trajectory to file. More...
 
static bool save (const rw::trajectory::Transform3DTrajectory &trajectory, const std::string &filename)
 Saves the Transform3DTrajectory trajectory to file. More...
 
static bool write (const rw::trajectory::QTrajectory &trajectory, std::ostream &outstream)
 Writes the QTrajectory trajectory to stream. More...
 
static bool write (const rw::trajectory::Vector3DTrajectory &trajectory, std::ostream &outstream)
 Writes the Vector3DQTrajectory trajectory to stream. More...
 
static bool write (const rw::trajectory::Rotation3DTrajectory &trajectory, std::ostream &outstream)
 Writes the QRotation3Drajectory trajectory to stream. More...
 
static bool write (const rw::trajectory::Transform3DTrajectory &trajectory, std::ostream &outstream)
 Writes the Transform3DTrajectory trajectory to stream. More...
 

Detailed Description

Class for saving trajectories to file.

Trajectories are saved in the RobWork Trajectory XML-format specified in rwxml_trajectory.xsd and matching with rw::loaders::XMLTrajectoryLoader

Member Function Documentation

◆ save() [1/4]

static bool save ( const rw::trajectory::QTrajectory trajectory,
const std::string &  filename 
)
static

Saves the QTrajectory trajectory to file.

If an error occurs while saving an rw::core::Exception is thrown

Parameters
trajectory[in] Trajectory to save
filename[in] Target filename

◆ save() [2/4]

static bool save ( const rw::trajectory::Rotation3DTrajectory trajectory,
const std::string &  filename 
)
static

Saves the Rotation3DTrajectory trajectory to file.

If an error occurs while saving an rw::core::Exception is thrown

Parameters
trajectory[in] Trajectory to save
filename[in] Target filename

◆ save() [3/4]

static bool save ( const rw::trajectory::Transform3DTrajectory trajectory,
const std::string &  filename 
)
static

Saves the Transform3DTrajectory trajectory to file.

If an error occurs while saving an rw::core::Exception is thrown

Parameters
trajectory[in] Trajectory to save
filename[in] Target filename

◆ save() [4/4]

static bool save ( const rw::trajectory::Vector3DTrajectory trajectory,
const std::string &  filename 
)
static

Saves the Vector3DTrajectory trajectory to file.

If an error occurs while saving an rw::core::Exception is thrown

Parameters
trajectory[in] Trajectory to save
filename[in] Target filename

◆ write() [1/4]

static bool write ( const rw::trajectory::QTrajectory trajectory,
std::ostream &  outstream 
)
static

Writes the QTrajectory trajectory to stream.

If an error occurs while saving an rw::core::Exception is thrown

Parameters
trajectory[in] Trajectory to write
outstream[in] Output stream

◆ write() [2/4]

static bool write ( const rw::trajectory::Rotation3DTrajectory trajectory,
std::ostream &  outstream 
)
static

Writes the QRotation3Drajectory trajectory to stream.

If an error occurs while saving an rw::core::Exception is thrown

Parameters
trajectory[in] Trajectory to write
outstream[in] Output stream

◆ write() [3/4]

static bool write ( const rw::trajectory::Transform3DTrajectory trajectory,
std::ostream &  outstream 
)
static

Writes the Transform3DTrajectory trajectory to stream.

If an error occurs while saving an rw::core::Exception is thrown

Parameters
trajectory[in] Trajectory to write
outstream[in] Output stream

◆ write() [4/4]

static bool write ( const rw::trajectory::Vector3DTrajectory trajectory,
std::ostream &  outstream 
)
static

Writes the Vector3DQTrajectory trajectory to stream.

If an error occurs while saving an rw::core::Exception is thrown

Parameters
trajectory[in] Trajectory to write
outstream[in] Output stream

The documentation for this class was generated from the following file: