Closed peci1 closed 5 years ago
@doronhi Here is a detailed video of the issue. I started the model which had the correct transforms but then everything is offset when the driver is started.
When the driver is started the frames no longer line up with the geometry. @peci1 recommends changing the xacro, but I like the origin where it is. The mounting point is a lot more logical than the 0 point corner of the model. I'd propose either changing the transforms in the driver to match the xacro or adding a launch file param to disable tf publishing if static transforms are already being published by a robot state publisher. I'd opt for the second option, many other sensors use this parameter and it won't change behavior unless used.
@doronhi Any suggestions on how you'd like to handle this issue?
When you are viewing the model using
view_d435_model.launch
, this is the TF you get:Whereas with the live camera, you get:
Indeed, in the xacro file used in viewing, there is a non-zero transform between camera_link and camera_depth_frame, whereas in the driver source, camera_link and camera_depth_frame coincide.
I assume the XACRO file should be fixed.