Open JiangShangJiu opened 1 month ago
Please provide the information that is requested in the bug report ticket - most importantly - what version of ROS / MoveIt - debs or source? If Source, what branch.
(I'm going to note that I have been using the main branch built against both Iron/Jazzy and not had this issue with the octomap)
Thank you for replying so quickly ROS2: Humble MoveIt also is the Humble version My guess is that I loaded the depth map and point cloud data of an RGBD sensor at the same time and passed it to moveit to generate an octomap. The octomap shown in my image is generated from the data of the depth map. I can't generate an octomap when I'm using point cloud data alone. I'm not sure if the octomap generated from the depth map data is correct.
In addition, I am using the simulation environment Ignition Gazebo. and the sensor_name="d435"
Seems like an error related to the sensor used from Ignition, this PR may contain helpful information for you:
https://github.com/gazebosim/gz-sensors/pull/458
The depth and pcd are in a frame_id
that you do not expect and moreover generating an octomap in the wrong frame. Not sure if this what's going in Ignition though.
May be helpful to setup the octomap frame_id
as well, for example:
sensors:
- default_sensor
default_sensor:
filtered_cloud_topic: filtered_cloud
max_range: 3.0
max_update_rate: 1.0
padding_offset: 0.01
padding_scale: 0.01
point_cloud_topic: /camera/depth/color/points
point_subsample: 1
sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater
octomap_frame: {frame_here}
I passed the data from the depth camera in the ignition gazebo into the moviet, but the octomap coordinates are not normal, but the point cloud and depth map are normal. May I ask where I wrote it wrong?
sensors_3d.yaml `sensors:
camera_2_depth_image: sensor_plugin: occupancy_map_monitor/DepthImageOctomapUpdater image_topic: /rgbd_camera/depth_image queue_size: 5 near_clipping_plane_distance: 0.3 far_clipping_plane_distance: 5.0 shadow_threshold: 0.2 padding_scale: 1.0 max_update_rate: 30.0 filtered_cloud_topic: /camera_2/filtered_points
**moveit_rviz.launch.py**
def load_yaml(package_name, file_path): package_path = get_package_share_directory(package_name) absolute_file_path = os.path.join(package_path, file_path)
def generate_launch_description():
`