How can I add a camera publishing to a ros topic from an sdf file

asked 2018-02-13 23:31:56 -0600

ashwinvk94 gravatar image

I am working on simulating a quadcopter using the px4 sitl simulator and I want to add a camera which publishes images to a ros topic. The simulator contains a quadcopter model derived from the rotorS model.

But unlike the original rotorS model, the quadcopter model is described using an sdf file rather than a urdf file. Although I understood how to add a ROS topic publishing camera using the URDF file, I did not understand how to do the same using sdf files.

I am pasting the sdf file here, please tell me how I can add a camera which publishes to a ros topic by editing this sdf file. C:\fakepath\iris.sdf

edit retag flag offensive close merge delete


How is going? any success?

AchmadFathoni gravatar imageAchmadFathoni ( 2018-05-24 10:24:08 -0600 )edit

Could you add to your question the way you'd add it to a URDF? It should be quite similar, with some minor tweaks

chapulina gravatar imagechapulina ( 2018-05-24 12:43:55 -0600 )edit