Open KarimHP opened 1 year ago
Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed.
Changing the is_dense
flag of your PC message does't make sense. If your camera sets this flag, it is for a reason.
The error you are seeing perfectly explains your problem: TF cannot determine a transform from camera_depth_optical_frame
to base_link
. Because of that, no ROS component (neither rviz nor MoveIt) can transform the PC into some robot-related frame.
You need to publish a (static) transform describing the location of your camera w.r.t. the robot!
First of all, thank you for answering. Sadly i dont fully understand. So the mistake is that i use the base_link as a fixed frame? How do i publish a static transform describing the location of my camera? Is this explained somewhere in the tutorials?
Description
Overview of your issue here.
Your environment
Steps to reproduce
Im trying to integrate an octomap into my moveit/rviz setup. For this im following this tutorial: https://ros-planning.github.io/moveit_tutorials/doc/perception_pipeline/perception_pipeline_tutorial.html
Now the Problem is: If i start the demo from the tutorial with the pregiven rosbag that contains the octomap data:
Everything works fine. Here is a screenshot
Now im using an intel realsense Depth Camera D435i with ROS and want to use the pointcloud topic to create an octomap in moveit. This does not work. It already worked with other methods (open3d etc.) so i doubt its about the cameras pointcloud output. When i echo the pointcloud output it looks correct. The only difference to the pregiven rosbag i noticed was that the "isDense" Attribute was True. So i wrote a little script that sets it to false and republishes it.
Now when i do rostopic echo /camera/depth_registered/points", this is the output (which seems to be correct):
So i wrote it in my sensors_kinect_pointcloud.yaml:
As i already said this topic works with other methods like open3d. So im thinking im doing something wrong in move it.
I call move it with:
and then i start rviz with
Now as you can see in the screenshot, even if i choose the corrent topics which is /camera/depth_registered/points, no pointcloud shows up. I also dont understand the error that i get which is:
Why is no octomap showing up?
Thanks in advance for every help!