osrf / vrx

Virtual RobotX (VRX) resources.
Apache License 2.0
421 stars 189 forks source link

How to plot Graph of waves against time #639

Closed mazik1496 closed 1 year ago

mazik1496 commented 1 year ago

I am using VRX classic.

Like wind, one of the elements that affect the environment of VRX classic is a wave. I want to get the topic of the wave using 'rqt_plot /vrx/debug/wind/speed/data'

and output a graph of the wave over time. Do you know what to do in this case?

M1chaelM commented 1 year ago

Our wave model is more complicated than the wind model, so there is not a single scalar value that you can graph in the same way. Can you say in more detail what aspects of the wave you are trying to represent in the graph?

mazik1496 commented 1 year ago

@M1chaelM What I want to express in the graph seems to be the amplitude of the wave against time.

M1chaelM commented 1 year ago

OK, so in that case I think the remaining piece of information you need is where on the surface of the water you would like to measure the amplitude. The nature of the simulation is that the amplitude is different in different places.

In any case, there is no built in functionality to do what you want, but depending on your needs you might be able to get a close approximation by putting a buoyant object on the service of the water and graphing its z position.

M1chaelM commented 1 year ago

Closing this as it's not a bug or feature request.