Open Owen-Liuyuxuan opened 4 months ago
I have the same problem in ros 1 noetic. I installed the rqt tools with apt-get install ros-noetic-microstrain-inertial-rqt
and when I run roslaunch /opt/ros/noetic/share/microstrain_inertial_rqt/launch/quickview.launch
I get the error
[...]
ImportError: cannot import name 'DeviceReport' from 'microstrain_inertial_msgs.srv' (/opt/ros/noetic/lib/python3/dist-packages/microstrain_inertial_msgs/srv/__init__.py)
The microstrain_inertial_rqt
package is considerably broken since the release of 4.0.0
. I have been meaning to fix it for some time, but have had other priorities, and unfortunately, that will probably continue for some time.
If anyone is interested in providing a fix for this, I am happy to review a PR. Otherwise, I will update this issue once the package gets fixed
I created a draft PR for this issue in the microstrain_intertial_rqt_common
submodule.
It's still work in progress but it is ~80% usable at the moment. Several widgets are still not being mapped to data properly because the data format of certain topics changed.
I haven't tested this on ros2.
Currently using ros2 (Jazzy) on Ubuntu 24.04 and seeing the exact same issue, Just starting to use this package and wondering how this could be fixed since the file that is being imported not existing in any file directories " ImportError: cannot import name 'DeviceReport' from 'microstrain_inertial_msgs.srv'", an explanation of how this worked previously could help a future fix.
Describe the bug I got an error while running
ros2 launch microstrain_inertial_rqt quickview_launch.py
on ROS humble.To Reproduce Steps to reproduce the behavior:
sudo apt install ros-humble-microstrain-inertial-driver ros-humble-microstrain-inertial-rqt
ros2 launch microstrain_inertial_driver microstrain_launch.py
and I can see the topics and data flowing correctly.ros2 launch microstrain_inertial_rqt quickview_launch.py
and the error messages can be seen.https://github.com/LORD-MicroStrain/microstrain_inertial_msgs_common/tree/269c6c062ee0a8cb0bbf56510fdd66a652f26015 I can not see any messages with
DeviceReport
nameExpected behavior I expected the rqt_gui to launch correctly. But there are python errors as posted before and plugin loading failure (probably due to python error)
Environment (please complete the following information):
Modifications I have not changed the code because I just installed the packages with apt.
Launch Parameters I do not have a launch parameter file.
Additional context Add any other context about the problem here.