ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Extract Messages data from CyberRT To Plot

asked 2021-07-20 18:02:57 -0500

Vini71 gravatar image

Hi My System information is below:

  • OS: Ubuntu 18.04
  • Apollo installed from binary. I mean I am using Docker. Installed using this tutorial to clone the repo, etc: https://www.svlsimulator.com/docs/arc...
  • Apollo version: Apollo.Auto 6.0

Hi I need to extract the messages contained inside the Apollo Channels:

channels_messages

Steps to reproduce the issue:

I have already tried to:

  1. Record the Channels data using the cyber recorder tool:

cyber_recorder record -all

  1. Parse the recorded files using the parser tool, to get the data on .txt format:

./bazel-bin/modules/tools/record_parse_save/record_parse_save

However this did not work as already discussed in this issue: https://github.com/ApolloAuto/apollo/...

My attempt resulted in this error: from modules.drivers.proto.conti_radar_pb2_import ContiRadar ModuleNotFoundError: No module named "modules.drivers"

A similar error appears when modifying the parser_params.yaml file for just extract for the camera or just the lidar.

The issue is that I DO NOT WISH GET THE MESSAGES DATA JUST for these PERCEPTION SENSORS. I WISH TO EXTRACT THE MESSAGES FOR ALL THE OTHER CHANNELS AS I DISPLAYED IN THE FIGURE ABOVE.

Actually I need the channels data TO PLOT CHARTS using MATPLOTLIB or other tool... I need this data in .csv or .txt or even in other programatic structure, such a list, dictionary or Dataframe. I just need this messages data in someway that is possible to Plot.

I took a look already in the realtime_plot.py and the other plots from documentation:

All these modules code plot the data dynamically, However I do Not wish A Dynamic Plot, as the PNC Monitor provides on Dreamview. I need a static Plot, plotted from a specific size of an array of messages, in order to put on my research project.

Could someone please assist me on this issue?

Thanks in advance

edit retag flag offensive close merge delete

Comments

Apollo != ROS. I'm confused as to why you posted your question here on ROS Answers.

gvdhoorn gravatar image gvdhoorn  ( 2021-07-23 09:43:19 -0500 )edit

Not so different Apollo is ROS based such as Autoware is, but is much bettter. And I used the tag Apollo which is provided by ROS Answers as option.

Vini71 gravatar image Vini71  ( 2021-07-23 09:53:18 -0500 )edit

And I used the tag Apollo which is provided by ROS Answers as option.

that doesn't really mean anything.

It just means someone before you asked a question and applied the apollo label to it (if it doesn't exist, ROS Answers will create it for you).

The (in)existence of labels does not imply any support, knowledge or applicability.

Apollo may not be "so different", but ROS Answers it not an Apollo support forum. I'm sure the Apollo developers have provided their own support fora, which would be much better venues to ask your question than here on ROS Answers.

gvdhoorn gravatar image gvdhoorn  ( 2021-07-23 10:12:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-08-06 11:04:30 -0500

Vini71 gravatar image

I have solved and provided the tutorial here on my branch in apollo forked repo, if someone be interested: https://github.com/marcusvinicius178/...

I am going to create the code to convert csv to DataFrame and afterwards plot the graphs....then I will update this branche soon.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-07-20 18:02:57 -0500

Seen: 183 times

Last updated: Aug 06 '21