Open boris-gu opened 2 years ago
Where can I find out what tags I can use for plugin libgazebo_ros_depth_camera in .sdf file?
I think this is the best part in the source to look at this is here: https://github.com/ros-simulation/gazebo_ros_pkgs/blob/231a7219b36b8a6cdd100b59f66a3df2955df787/gazebo_plugins/src/gazebo_ros_depth_camera.cpp#L91
how can I rotate points in rviz so that the depth is not on the z-axis? Yes there are a whole lot of SDF or URDF ways to do this, I think in your snippet you can simply modify the
pose
tag<pose>0 -0.03 0.004 0 0 0</pose>
to add orientation information (X Y Z R P Y)
Unfortunately, "pose" tag doesn't help. My camera model is directed forward, but in the view the point cloud is displayed upwards. Apparently this is a plugin bug.
I managed to fix this by adding the following line to .launch file:
<node pkg="tf2_ros" type="static_transform_publisher" name="realsense_tf" args="0 0.5 0 0 -1.570796 1.570796 gardener_raw gardener"/>
I had the same issue, I can't rotate the depth.
I'm using ros2 foxy
Hello. Where can I find out what tags I can use for plugin libgazebo_ros_depth_camera in .sdf file? And the second question is: how can I rotate points in rviz so that the depth is not on the z-axis? I have seen tips for where the .urdf file is used, but there is no such file in my model. Is it possible to somehow fix points orientation in the .sdf file?
Part of my code: