moveit2
The MoveIt Motion Planning Framework for ROS 2.
Public Member Functions | List of all members
moveit::py_bindings_tools::ByteString Class Reference

C++ Wrapper class for Python 3 Bytes Object. More...

#include <serialize_msg.h>

Inheritance diagram for moveit::py_bindings_tools::ByteString:
Inheritance graph
[legend]
Collaboration diagram for moveit::py_bindings_tools::ByteString:
Collaboration graph
[legend]

Public Member Functions

 ByteString ()
 
 ByteString (const char *s)
 
 ByteString (const std::string &s)
 
template<typename T >
 ByteString (const boost::python::api::proxy< T > &proxy)
 
template<typename T , typename std::enable_if< ros::message_traits::IsMessage< T >::value, int >::type = 0>
 ByteString (const T &msg)
 Serializes a ROS message into a Python Bytes object The second template parameter ensures that this overload is only chosen with a ROS message argument. More...
 
template<typename T >
void deserialize (T &msg) const
 Convert content to a ROS message. More...
 

Detailed Description

C++ Wrapper class for Python 3 Bytes Object.

Definition at line 51 of file serialize_msg.h.

Constructor & Destructor Documentation

◆ ByteString() [1/5]

moveit::py_bindings_tools::ByteString::ByteString ( )
inline

Definition at line 56 of file serialize_msg.h.

◆ ByteString() [2/5]

moveit::py_bindings_tools::ByteString::ByteString ( const char *  s)
inlineexplicit

Definition at line 59 of file serialize_msg.h.

◆ ByteString() [3/5]

moveit::py_bindings_tools::ByteString::ByteString ( const std::string &  s)
inlineexplicit

Definition at line 62 of file serialize_msg.h.

◆ ByteString() [4/5]

template<typename T >
moveit::py_bindings_tools::ByteString::ByteString ( const boost::python::api::proxy< T > &  proxy)
inlineexplicit

Definition at line 68 of file serialize_msg.h.

◆ ByteString() [5/5]

template<typename T , typename std::enable_if< ros::message_traits::IsMessage< T >::value, int >::type = 0>
moveit::py_bindings_tools::ByteString::ByteString ( const T &  msg)
inlineexplicit

Serializes a ROS message into a Python Bytes object The second template parameter ensures that this overload is only chosen with a ROS message argument.

Definition at line 75 of file serialize_msg.h.

Member Function Documentation

◆ deserialize()

template<typename T >
void moveit::py_bindings_tools::ByteString::deserialize ( T &  msg) const
inline

Convert content to a ROS message.

Definition at line 86 of file serialize_msg.h.

Here is the caller graph for this function:

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