realsense_gazebo_plugin icon indicating copy to clipboard operation
realsense_gazebo_plugin copied to clipboard

No points published for kinetic devel

Open CesMak opened this issue 5 years ago • 5 comments

Hey there,

just tested the kinetic-devel branch unittests:

ostest realsense_gazebo_plugin realsense_streams.test
... logging to /home/mlamprecht/.ros/log/rostest-mlamprecht-pc-8945.log
[ROSUNIT] Outputting test results to /home/mlamprecht/.ros/test_results/realsense_gazebo_plugin/rostest-test_realsense_streams.xml
[ INFO] [1573634895.473643669]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1573634895.474245803]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1573634895.957811694]: Realsense Gazebo ROS plugin loading.

RealSensePlugin: The realsense_camera plugin is attach to model realsense_camera
[ INFO] [1573634896.075718407, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1573634896.096323756, 0.042000000]: Physics dynamic reconfigure ready.
[Testcase: testrealsense_plugin_test] ... ERROR!
ERROR: max time [60.0s] allotted for test [realsense_plugin_test] of type [realsense_gazebo_plugin/test_realsense_streams]
  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/runner.py", line 148, in fn
    self.test_parent.run_test(test)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/rostest_parent.py", line 132, in run_test
    return self.runner.run_test(test)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/launch.py", line 684, in run_test
    (test.time_limit, test.test_name, test.package, test.type))
--------------------------------------------------------------------------------

[ROSTEST]-----------------------------------------------------------------------


SUMMARY
 * RESULT: FAIL
 * TESTS: 0
 * ERRORS: 1
 * FAILURES: 0

If I try to see the point cloud, no points are published. This is what I did:

roslaunch realsense_gazebo_plugin realsense.launch # in terminal 1
roslaunch realsense_gazebo_plugin depth_proc.launch # in terminal 2
Then open Rviz, and display the /realsense/camera/depth_registered/points topic, you should see something like this 

CesMak avatar Nov 13 '19 08:11 CesMak

Hey, have you able to solve above error? I am also getting the same error.

anubhav1772 avatar Nov 15 '19 20:11 anubhav1772

Are you using ROS kinetic with Gazebo 7?

SyrianSpock avatar Dec 04 '19 21:12 SyrianSpock

@SyrianSpock I got the same error and yes I am using ROS kinetic with Gazebo 7. Is there any solution?

Thanks in advance

MoTahoun avatar Jan 31 '20 10:01 MoTahoun

This is weird do you still get the issue on the current master branch?

SyrianSpock avatar Mar 04 '20 15:03 SyrianSpock

As for failing the unit tests:

I'm running melodic and using the master branch and had the same failure as OP. In realsense_streams_test.cpp I changed the topic names to start with realsense_plugin and now it passes every test except the last one.

I'm still unable to get the pointcloud working however. I've tried using rosrun tf static_transform_publisher 0 0 0 0 0 0 origin depth 1 to create the tf frames necessary for Rviz, without any luck.

danem avatar Apr 03 '20 23:04 danem