personalrobotics / or_rviz

OpenRAVE viewer plugin that publishes the environment to RViz as InteractiveMarkers.
BSD 2-Clause "Simplified" License
5 stars 5 forks source link

Error when running the test #43

Closed rpapallas closed 6 years ago

rpapallas commented 6 years ago

Hi,

Thanks for sharing your work!

I installed the openrave_catkin and or_rviz packages in my catkin_ws/src and then ran catkin_make which was successful.

I also have the following in my ~/.bashrc file:

export OPENRAVE_PLUGINS=$OPENRAVE_PLUGINS:~/catkin_ws

I am running:

rosrun or_rviz test.py

The Python environment loads up but I get the following OpenRAVE warning:

2018-01-24 16:37:28,757 openrave [WARN] [kinbody.cpp:3335 KinBody::_ComputeInternalInformation] whiteboard link index 0 has no name
2018-01-24 16:37:28,757 openrave [WARN] [kinbody.cpp:3335 KinBody::_ComputeInternalInformation] whiteboard link index 1 has no name
2018-01-24 16:37:28,926 openrave [WARN] [plugindatabase.h:577 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name RViz, interface viewer

I was also running roscore on another terminal.

The problem is that the RViz window is not created and nothing actually happens. It seems that there is something wrong with the RaveDatabase, probably not found?

Any ideas?

System Details:

Regards, Rafael Papallas

rpapallas commented 6 years ago

Managed to solve the problem. It wasn't clear from the instructions but here what I did:

When I ran catkin_make at the end of the process I had something like this:

Linking CXX shared library /home/rafael/catkin_ws/devel/share/openrave-0.9/plugins/or_rviz_plugin.so
[100%] Built target or_rviz_plugin

(If you missed that output, you can run catkin_make clean and then rerun catkin_make)

The important part is the path /home/rafael/catkin_ws/devel/share/openrave-0.9/plugins/or_rviz_plugin.so

I edited my ~/.bashrc file to include the following line:

export OPENRAVE_PLUGINS=$OPENRAVE_PLUGINS:~/catkin_ws/devel/share/openrave-0.9/plugins

Source your bashrc so your changes take effect by running source ~/.bashrc

Two ways to test: 1) Run rosrun or_rviz test.py 2) Check if RViz appears as an OpenRAVE plugin by running openrave --listplugins and check that RViz appears under viewer section.

Then the problem is solved.

Regards, Rafael Papallas