ROS1 bag writer helper.
More...
#include <bagwriter.hpp>
ROS1 bag writer helper.
Definition at line 48 of file bagwriter.hpp.
◆ Open()
| bool fpsdk::ros1::bagwriter::BagWriter::Open |
( |
const std::string & | path, |
|
|
const int | compress = 0 ) |
Open bag for writing.
- Parameters
-
| [in] | path | Path/filename of the bag file |
| [in] | compress | Compress bag, 0 = no compression, 1 = LZ4, 2+ = BZ2 |
- Returns
- true if bag was sucessfully opened
◆ WriteMessage() [1/3]
template<typename T>
| bool fpsdk::ros1::bagwriter::BagWriter::WriteMessage |
( |
const T & | msg, |
|
|
const std::string & | topic, |
|
|
const ros::Time & | time ) |
|
inline |
Write a message to the bag.
- Template Parameters
-
- Parameters
-
| [in] | msg | The message |
| [in] | topic | Topic name |
| [in] | time | Bag record time |
- Returns
- true if message was added, false otherwise (message definition missing)
Definition at line 80 of file bagwriter.hpp.
References WARNING.
◆ WriteMessage() [2/3]
template<typename T>
| bool fpsdk::ros1::bagwriter::BagWriter::WriteMessage |
( |
const T & | msg, |
|
|
const std::string & | topic, |
|
|
const common::time::RosTime & | time = {} ) |
|
inline |
Write a message to the bag.
- Template Parameters
-
- Parameters
-
| [in] | msg | The message |
| [in] | topic | Topic name |
| [in] | time | Bag record time |
- Returns
- true if message was added, false otherwise (message definition missing)
Definition at line 105 of file bagwriter.hpp.
◆ AddMsgDef()
Add ROS message definition from .fpl.
- Note
- No checks on the provided data are done!
- Parameters
-
| [in] | rosmsgdef | The message definition |
◆ WriteMessage() [3/3]
Write message from .fpl.
- Note
- No checks on the provided data are done!
- Parameters
-
| [in] | rosmsgbin | The recorded message |
- Returns
- true if message was added, false otherwise (message definition missing)
The documentation for this class was generated from the following file: