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

swiss_knight's profile - activity

2019-09-11 05:10:47 -0500 received badge  Famous Question (source)
2019-09-11 05:10:47 -0500 received badge  Notable Question (source)
2019-03-06 08:52:27 -0500 edited question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-03-06 08:51:50 -0500 marked best answer rviz config file for android sensors

Hi,

I'm pretty new to all the ROS ecosystem so please excuse my question if not adequate (and I feel I miss many pieces for the moment...).

I'm wondering; is there a config file for ROS Sensors Driver ( http://wiki.ros.org/android_sensors_d... ) to use with $ rosrun rviz riv -d <config_file> in order to plot (on a 2D graph e.g.) sensors' data from an Android device (smartphone)? The "ROS Sensors Driver" was installed and is successfully connected to ROS master on the laptop running roscore.

I can also successfully print out variation from the IMU chips with $ rostopic echo /android/imu for instance:

header: 
  seq: 384095
  stamp: 
    secs: 1551421044
    nsecs: 381000000
  frame_id: "/imu"
orientation: 
  x: -0.0177525561303
  y: -0.00952073466033
  z: -0.892899274826
  w: 0.449805617332
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity: 
  x: -0.000991821289062
  y: 0.00173950195312
  z: -0.00140380859375
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration: 
  x: 0.445648193359
  y: -0.0185089111328
  z: 9.7029876709
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
---

In RViz, I got this warning:

No tf data.  Actual error: Fixed Frame [map] does not exist

And if I run this command in parallel: $ rosrun tf static_transform_publisher 0 0 0 0 0 0 1 map my_frame 10 I have this error:

For frame [/imu]: Frame [/imu] does not exist

I'm running ros melodic 1.14.3 on Ubuntu 18.04 64 bits.
And the "ROS Sensors Driver" app on the Android 6.0.1 smartphone is coming from the playstore.
Thanks.


* Edit: *
Thanks gvdhoorn for the hint. Explanations here under.

I have tried two other things in the meantime:
1) the imu plugin for rviz: http://wiki.ros.org/rviz_imu_plugin : worked like a charm, I'm receiving the /android/imu messages from the $ rosbag play <my_bag_file> command I launched in the same time (I'm now searching how to visualize the device motion relative to the map frame instead of it's own frame, which is giving it a "static look" except for rotations which are fine.

2) rqt_bag: http://wiki.ros.org/rqt_bag : it seems also to work correctly to me but hasn't a graph visualization mode; rqt_bag screenshot

Then, I tried your python script to fix the bag file itself in two ways, none of them is working;
a) $ python rosbag_fixer/fix_bag_msg_def.py --use-local-defs -c "/android/imu" "bagfiles/2019-03-01-11-53-15.bag" "bagfiles/2019-03-01-11-53-15_FIX.bag"

which printed:

No topics found for callerid '/android/imu'. Make sure it is correct.

b) $ python rosbag_fixer/fix_bag_msg_def.py --use-local-defs "bagfiles/2019-03-01-11-53-15.bag" "bagfiles/2019-03-01-11-53-15_FIX.bag"

which printed:

Writing out fixed bag ..
 bagfiles/2019-03-01-11-53-15_FIX.bag        100%            687.3 KB 00:00    

done

The new bag probably needs to be re-indexed. Use 'rosbag reindex bagfiles/2019-03-01-11-53-15_FIX.bag' for that.

So I ran the proposed reindex command to fix it ... (more)

2019-03-06 08:51:50 -0500 received badge  Scholar (source)
2019-03-06 08:21:07 -0500 commented answer rviz config file for android sensors

That's great; it works with Python now! :D Many thanks for your commit gvdhoorn!

2019-03-06 08:21:07 -0500 received badge  Commentator
2019-03-06 07:33:56 -0500 received badge  Famous Question (source)
2019-03-06 03:45:47 -0500 commented answer rviz config file for android sensors

What I cannot get is why, for a 12h data file recorded a few days ago, I can plot them in python (using rosbag_pandas pa

2019-03-06 03:32:24 -0500 edited question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-03-06 03:21:49 -0500 edited question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-03-06 03:20:25 -0500 commented answer rviz config file for android sensors

Update of 1st post with some bag files and explanations. In short; "mono compontent" topics displayed fine in rqt_plot.

2019-03-06 03:18:30 -0500 edited question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-03-05 09:10:49 -0500 received badge  Enthusiast
2019-03-04 05:31:34 -0500 commented answer rviz config file for android sensors

Bad quick manipulation from my side; I had to run the fix on the pressure-only data, but it ran nicely and I was then ab

2019-03-04 05:19:13 -0500 commented answer rviz config file for android sensors

Bad quick manipulation from my side; I had to run the fix on the pressure-only data, but it ran nicely and I was then ab

2019-03-04 05:11:31 -0500 commented answer rviz config file for android sensors

Ok, good thing to know, I'm not yet "ROSed" enough to understand fine grained details such as these. What you said could

2019-03-04 04:54:13 -0500 commented answer rviz config file for android sensors

I just checked all that with an other bag file recorded on the same android device. This one has no values from the IMU

2019-03-04 02:42:31 -0500 received badge  Popular Question (source)
2019-03-04 02:09:09 -0500 commented answer rviz config file for android sensors

Edit 2, for more convenience I append it to the first post as well. Btw, do you know where we can adresse the rosjava i

2019-03-04 02:09:01 -0500 commented answer rviz config file for android sensors

Edit 2, for more convenience I append it to the first post as well. Btw, do you know where we can adresse the rosja

2019-03-04 01:51:47 -0500 edited question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-03-04 01:50:44 -0500 edited question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-03-04 01:49:00 -0500 edited question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-03-04 01:47:00 -0500 commented answer rviz config file for android sensors

Edit 2, for more convenience I append it to the first post as well.

2019-03-04 01:42:45 -0500 commented answer rviz config file for android sensors

Edit 2, for more convenience I append it to the first post as well.

2019-03-04 01:42:05 -0500 edited question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-03-04 01:38:42 -0500 edited question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-03-04 01:38:42 -0500 received badge  Editor (source)
2019-03-01 07:54:06 -0500 edited answer rviz config file for android sensors

Thanks gvdhoorn for the hint. Explanations here under. I have tried two other things in the meantime: 1) the imu plug

2019-03-01 07:44:50 -0500 answered a question rviz config file for android sensors

Thanks gvdhoorn for the hint. Explanations here under. I have tried two other things in the meantime: 1) the imu plug

2019-03-01 04:37:50 -0500 received badge  Notable Question (source)
2019-03-01 02:58:08 -0500 commented answer rviz config file for android sensors

And with plotjugler, when trying to load the sensor_msgs/Imu Datatype from topic /android/imu I get the following error

2019-03-01 02:49:07 -0500 commented answer rviz config file for android sensors

I tried to plot data from the /android/imu topic with rqt_plot but the "plus" button is grayed out; I am unable to proce

2019-03-01 02:31:42 -0500 commented answer rviz config file for android sensors

I tried to plot data from the '/android/imu' topic with rqt_plot but the "plus" button is grayed out; I am unable to pro

2019-02-26 09:27:13 -0500 asked a question Rtabmap with Tango ROS streamer; rtabmap 'Did not receive data since 5 seconds!'

Rtabmap with Tango ROS streamer; rtabmap 'Did not receive data since 5 seconds!' Hello, I'm running ROS melodic 1.14.3

2019-02-26 05:32:10 -0500 received badge  Popular Question (source)
2019-02-25 08:17:55 -0500 asked a question rviz config file for android sensors

rviz config file for android sensors Hi, I'm pretty new to all the ROS ecosystem so please excuse my question if not ad

2019-02-21 05:25:58 -0500 answered a question Tango ROS Streamer: the app cannot connect to the ROS master URI

I have the exact same issue; I cannot connect to ROS master URI. Same issue from the "ROS Sensors Driver" application

2019-02-21 05:18:15 -0500 received badge  Supporter (source)