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

Where can I find an example of a C++ ROS 2 rqt plugin?

asked 2023-05-03 21:46:40 -0500

Tupinambis gravatar image

updated 2023-05-05 10:03:27 -0500

So far, I've only found ROS 2 rqt plugins ported over from ROS 1 that were written in Python. The docs (https://docs.ros.org/en/rolling/Conce...) mention writing custom plugins in both Python and C++, and I also see that rqt_gui_cpp exists on the rolling branch of the rqt github repos. I haven't been able to get a C++ rqt plugin build to work correctly without an example to work off of.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2023-05-10 08:36:24 -0500

130s gravatar image

updated 2023-05-15 09:27:42 -0500

One of the "core" rqt tools, rqt_image_view is mainly C++, then rolling-devel branch seems to be ROS2-tified (interestingly humble-devel branch, likely the branch for the latest released ROS2, still uses Catkin so not fully ROS2 yet).

UPDATE Apparently for some/many ROS2 releases, rqt_image_view has already been released (index.ros.org) so the branch may be of little concern even though some are still using Catkin as the build system at the time of writing). Try humble-devel? If you still see issues you should report at the repository.

edit flag offensive delete link more

Comments

Thanks, I believe this is just what I was looking for!

Tupinambis gravatar image Tupinambis  ( 2023-05-10 09:25:46 -0500 )edit

When running this plugin I get the following log messages:

munmap_chunk(): invalid pointer

Everything I've found related to this refers to misuse of alloc functions which aren't used anywhere in the plugin codebase. Does anyone have any idea what might be wrong?

Tupinambis gravatar image Tupinambis  ( 2023-05-10 11:33:28 -0500 )edit

@Tupinambis I've updated my post.

130s gravatar image 130s  ( 2023-05-10 11:58:33 -0500 )edit

After starting off from a fresh rolling container that error no longer occurs. I wish I could say what the root cause is, but oh well. Thanks again for your help.

Tupinambis gravatar image Tupinambis  ( 2023-05-10 14:43:07 -0500 )edit
0

answered 2023-05-07 12:25:02 -0500

ljaniec gravatar image
edit flag offensive delete link more

Comments

I'll take a look at these, thanks. I see that they are all rviz plugins. Are you aware of any open-source ROS 2 C++ rqt plugins?

Tupinambis gravatar image Tupinambis  ( 2023-05-10 08:30:16 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2023-05-03 21:46:40 -0500

Seen: 148 times

Last updated: May 15 '23