Ask Your Question
0

How to store data receieved from UM7

asked 2017-01-27 04:24:35 -0600

Wiew gravatar image

updated 2017-02-21 04:48:44 -0600

gvdhoorn gravatar image

dear,

i run a UM7 drivers but i'm not able to see inertial data (i'm able to see only messages like received packet XY without data or sending command zero gyroscopes).

Do you have some solution how to show inertial data (from accelerometers and gyroscopes?)

Thank you for your responce


Edit: thank you for your response. There is a manual how to show data for other users. I hope it should be useful.

  1. install ROS + other features

  2. sudo su

  3. roscore

  4. second terminal

  5. sudo su
  6. cd /root/catkin_ws (or place where you have a catkin workspace)
  7. source devel/setup.bash
  8. rosrun um7 um7_driver _port:=/dev/ttyAMA0

A) show data in RVIZ

  1. Third console
  2. rosrun rviz rviz (you need rviz_imu_plugin)
  3. add module IMU
  4. fixed frame : imu_link 13 in module IMU fill topic /imu/data
  5. rviz should show data from IMU

B) show RAW data in console

  1. third console
  2. sudo su
  3. rostopic echo /imu/data (or show another type using rostopic list)
edit retag flag offensive close merge delete

Comments

Why are you running things in a sudo su session? That should not be necessary (and is often very much undesirable).

gvdhoorn gravatar imagegvdhoorn ( 2017-02-21 04:48:11 -0600 )edit

Yeah sure, it is not necessary for all users. In my case i installed ros under root and without sudo session i am not able to run ros.

Wiew gravatar imageWiew ( 2017-02-21 05:27:35 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-01-27 05:54:38 -0600

gvdhoorn gravatar image

Visualising and storing it are two different things, but both should be possible.

For a live 3D visualisation of the data, you can use the rviz_imu_plugin in RViz.

For plotting the data, you could look at rqt_plot or one of the alternatives that exist, like rqt_multiplot or PlotJuggler.

For recording the data, take a look at rosbag. That will also allow you to play it back later.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-01-27 04:24:35 -0600

Seen: 139 times

Last updated: Feb 21 '17