LORD-MicroStrain / microstrain_inertial

ROS driver for all of MicroStrain's current G and C series products. To learn more visit
https://www.microstrain.com/inertial
102 stars 75 forks source link

No topic for '/imu/mag' and '/imu/pressure' for 3DM-CV7-AHRS using ROS2 Jazzy #366

Open Rhyssmcm opened 1 week ago

Rhyssmcm commented 1 week ago

Describe the bug Able to get topic list of "/ekf/status /imu/data /imu/data_raw /parameter_events /rosout /tf /tf_static" However I want full access to all the topics available on my device, 3DM-CV7-AHRS, which has mag and pressure sensor. I would like information on how the .yml file can be changed to allow these topics to be published. I am reluctant to change my ROS2 version as Jazzy will be what I will be using over next 3 years, just unsure how the other topics can be grabbed and not the rest.

To Reproduce Steps to reproduce the behavior:

  1. Launch Node with command `cd your_workspace/
  2. source install/setup.bash
  3. ros2 launch microstrain_inertial_driver microstrain_launch.py params_file:="/home/rmcm/sensor_3dm_params.yml"`
  4. using "ros2 topic list -t" I can see the topic list of some topics but not all.
  5. See Error

Expected behavior A clear and concise description of what you expected to happen.

Environment (please complete the following information):

Modifications Used custom .yml file in order to get it to work

Launch Parameters If you have an updated params.yml file, please attach it to this issue.

Additional context The .txt file is the .yml file but I could not attach the .yml file. sensor_3dm_params.txt

robbiefish commented 6 days ago

Hi @Rhyssmcm,

You can change the publisher data rates by changing any of the parameters in this section.

For the mag and pressure topics specifically, you can enable them by setting imu_mag_data_rate, and imu_pressure_data_rate to non-zero values