Difference between revisions of "Advantech Robotic Suite/ROS2 DBMS"

From ESS-WIKI
Jump to: navigation, search
(Step 3: List all ros2 bag files storaged on DBMS server.)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  
<br/> = Introduction =
+
= Introduction =
  
Ros2bag is a command line tool for recording data published on topics in your system, it provide record and replay ROS data of all types to data analysis and debugging purposes, given various use cases for this data logging, rosbags can contain either very simple data such as a trajectory of a robotics end effector up to highly complex data such as autonomous vehicle with multiple redundant high resolution sensors, recording topics is also a great way to share your work and allow others to recreate it.
+
<span style="font-size:large;">ros2bag is a command line tool for recording data published on topics in your system, it provide record and replay ROS data of all types to data analysis and debugging purposes, given various use cases for this data logging, rosbags can contain either very simple data such as a trajectory of a robotics end effector up to highly complex data such as autonomous vehicle with multiple redundant high resolution sensors, recording topics is also a great way to share your work and allow others to recreate it.</span>
 
+
<div><span style="font-size:x-large;">'''Features:'''</span></div>
== Features: ==
+
*<span style="font-size:large;">Start / Stop recording&nbsp;</span>  
 
+
*<span style="font-size:large;">Recycle mode ( it will keep recording data every hour and delete bag files older than 24 hours )&nbsp;</span>  
*Start / Stop recording&nbsp;<br/> *Recycle mode ( it will keep recording data every hour and delete bag files older than 24 hours )&nbsp;<br/> *List all of&nbsp;recording files&nbsp;<br/> *Export recording data&nbsp;
+
*<span style="font-size:large;">List all of&nbsp;recording files&nbsp;</span>  
 +
*<span style="font-size:large;">Export recording data&nbsp;</span>
  
 
&nbsp;
 
&nbsp;
Line 22: Line 23:
 
[[File:ROS2 DBMS RESTful API.png|none|ROS2 DBMS RESTful API]]
 
[[File:ROS2 DBMS RESTful API.png|none|ROS2 DBMS RESTful API]]
  
{| class="wikitable"<br/> |-<br/> ! API<br/> ! Method<br/> ! Description<br/> ! Usage<br/> |-<br/> | getStatus<br/> | Get<br/> | Get current ros2 bag status and configuration.<br/> | &nbsp;<br/> |-<br/> | StartRecord<br/> | POST<br/> | Start the ros2bag recording in recycle mode.<br/> | User needs to specify topics to be recorded.<br/> |-<br/> | StopRecord<br/> | Get<br/> | Stop the ros2bag recording.<br/> | &nbsp;<br/> |-<br/> | getDatabases<br/> | Get<br/> | List all ros2 bag files storaged on DBMS server.<br/> | &nbsp;<br/> |-<br/> | getDBInfo<br/> | Get<br/> | Get ros2 bag data information.<br/> | User needs to specify the bag file name.<br/> |-<br/> | export<br/> | Get<br/> | Download a ros2 bag file.<br/> | User needs to specify the bag file name.<br/> |}
+
{|
 
+
|-
&nbsp;
+
| &nbsp;  
 
 
 
== <big>Step 1: Check ros2bag service status.</big> ==
 
== <big>Step 1: Check ros2bag service status.</big> ==
  
Line 46: Line 46:
 
== <big>Step 3: List all ros2 bag files storaged on DBMS server.</big> ==
 
== <big>Step 3: List all ros2 bag files storaged on DBMS server.</big> ==
  
These bag files will be named and sorted by standard UNIX timestamp ( Example: 2022-12-26-16-14-209_0 ) . <br>
+
These bag files will be named and sorted by standard UNIX timestamp ( Example: 2022-12-26-16-14-209_0 ) .
  
 
[[File:ROS2 DBMS step3.png|1200x900px|ROS2 DBMS step3]]
 
[[File:ROS2 DBMS step3.png|1200x900px|ROS2 DBMS step3]]
  
== <big>Step 4: Get the specified ros2 bag data information.</big> ==
+
== <big>Step 4: Get the specified ros2 bag file information.</big> ==
  
 
[[File:ROS2 DBMS step4.png|1200x900px|ROS2 DBMS step4]]
 
[[File:ROS2 DBMS step4.png|1200x900px|ROS2 DBMS step4]]
Line 57: Line 57:
  
 
[[File:ROS2 DBMS step5.png|1200x900px|ROS2 DBMS step5]]
 
[[File:ROS2 DBMS step5.png|1200x900px|ROS2 DBMS step5]]
 +
 +
|-
 +
| &nbsp;
 +
|}

Latest revision as of 03:24, 5 March 2024

Introduction

ros2bag is a command line tool for recording data published on topics in your system, it provide record and replay ROS data of all types to data analysis and debugging purposes, given various use cases for this data logging, rosbags can contain either very simple data such as a trajectory of a robotics end effector up to highly complex data such as autonomous vehicle with multiple redundant high resolution sensors, recording topics is also a great way to share your work and allow others to recreate it.

Features:
  • Start / Stop recording 
  • Recycle mode ( it will keep recording data every hour and delete bag files older than 24 hours ) 
  • List all of recording files 
  • Export recording data 

 

How To

User can access the ros2 bag to record ROS 2 data by DBMS/ros2bag RESTful APIs.

 

DBMS/ros2bag API Documentation

URL : http://ServerIP:8080/dbms/ros/api-docs

ROS2 DBMS RESTful API
 

Step 1: Check ros2bag service status.

If "record": "start" it means ros2bag is recording, if "record": "stop" it means ros2bag is stop recording.

ROS2 DBMS step1

 

Step 2: Start record.

Enter topics you want to record, you can enter multiple topics separated by blank.
For example: start record with topics "/parameter_events /rosout".

ROS2 DBMS step2

Then the ros2bag service status will become "record": "start".

ROS2 DBMS step2-2

Step 3: List all ros2 bag files storaged on DBMS server.

These bag files will be named and sorted by standard UNIX timestamp ( Example: 2022-12-26-16-14-209_0 ) .

ROS2 DBMS step3

Step 4: Get the specified ros2 bag file information.

ROS2 DBMS step4

Step 5: Download the specified ros2 bag file.

ROS2 DBMS step5