ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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

Comments

With lack of response from the original poster, I marked this as an answer, not because this seems a solution but because this might likely resolve the issue. From the OP's description, we can only tell that pluginlib was told to find rviz_imu_plugin/IMU plugin but couldn't find, which doesn't directly mean .deb package was not installed. But it's likely.

130s gravatar image 130s  ( 2023-05-25 09:46:42 -0500 )edit
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

Question Tools

1 follower

Stats

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

Seen: 2,653 times

Last updated: Jul 06 '20