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

Send an Ogre3D object from an RViz panel

asked 2015-03-18 10:06:06 -0500

anonymous user

Anonymous

updated 2015-03-18 10:37:44 -0500

Hi everyone,

I'm currently working on an RViz panel, from which I would like to send Ogre3D objects (any kind of objects) in the RViz render window, just as ImuDisplay tutorial already does.

I think that my problem is I can't get the scene_manager_ variable from within my panel, since it doesn't inherit from (rviz::Panel) – contrary to rviz::Display or rviz::Tool.

I know that there is a protected attribute named vis_manager_ in all panel objects – inherited from rviz::VisualizationManager class – which has a getSceneManager() method, but it doesn't seem to work… (meaning that when I want to add my panel, RViz crashes, without any error code, but just says Segmentation fault (core dumped))

Here's my repo link: Github repo, on Ogre3D branch.

Does anyone have a hint? Does a panel that can send Ogre3D objects already exist? I remain at your disposal for any further information. Thanks a lot!

edit retag flag offensive close merge delete

Comments

The link to GitHub doesn't seem to work. Just because there is a Segmentation Fault doesn't mean it's rviz related, you'll need to debug it with gdb to know what the issue is: http://www.cprogramming.com/debugging...

William gravatar image William  ( 2015-03-18 13:09:39 -0500 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2015-03-18 13:55:39 -0500

kramer gravatar image

A guess: in your constructor, you're attempting to do a Qt connect with _visual, which isn't created until the onInitialize method is called.

edit flag offensive delete link more

Comments

@Matthieu_D: please click the checkmark next to the answer of @kramer, so we know that your question has been answered.

gvdhoorn gravatar image gvdhoorn  ( 2015-03-19 09:44:35 -0500 )edit
0

answered 2015-03-18 17:12:17 -0500

anonymous user

Anonymous

updated 2015-03-18 17:12:44 -0500

Thanks a lot @kramer! It was a small hint, but it helped me to get things right!

Now everything works perfectly :) I just had to move some lines directly in onInitialize function, make the connections, and _voilà_! I updated my repo accordingly.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-03-18 10:06:06 -0500

Seen: 334 times

Last updated: Mar 18 '15