Ask Your Question
0

rviz_imu_plugin/imu failed to load

asked 2020-07-05 19:28:42 -0500

ildaniel gravatar image

updated 2020-07-06 02:50:04 -0500

gvdhoorn gravatar image

I am trying to make the husky robot automatically explore a map with the explore_lite package. I use melodic on 18.04 and the melodic-devel branches of each package. In new terminals, running source ~/husky_ws/devel/setup.bash in each, I command:

roslaunch husky_viz view_robot.launch

and encounter the following error:

[ERROR] [1593994893.360426019, 1308.840000000]: PluginlibFactory: The plugin for class 'rviz_imu_plugin/Imu' failed to load.  Error: Could not find library corresponding to plugin rviz_imu_plugin/Imu. Make sure the plugin description XML file has the correct name of the library and that the library actually exists.

I did also clone the package https://github.com/ccny-ros-pkg/imu_t... in my /src. I didn't change the contents of the package_description.xml, which reads:

<library path="lib/librviz_imu_plugin">

  <class name="rviz_imu_plugin/Imu"
         type="rviz::ImuDisplay"
         base_class_type="rviz::Display">

    <description>
      Displays the orientation and acceleration components of sensor_msgs/Imu messages.
    </description>

  </class>

</library>

Any advice about changing the xml of file layout is appreciated!!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2021-03-10 01:31:50 -0500

Hi ildaniel,

You are missing a plugin. Just execute the following:

  • sudo apt-get install ros-$(rosversion -d)-rviz-imu-plugin

Hope it works.

edit flag offensive delete link more
0

answered 2020-12-19 06:19:42 -0500

Anis Koubaa gravatar image

just install it sudo apt-get install ros-<ros-distribution>-rviz-imu-plugin

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: 2020-07-05 19:28:42 -0500

Seen: 1,408 times

Last updated: Jul 06 '20