ros-drivers / pointgrey_camera_driver

ROS driver for Pt. Grey cameras, based on the official FlyCapture2 SDK.
128 stars 180 forks source link

how to get /tf from pointgrey #78

Closed zfxw0206 closed 7 years ago

zfxw0206 commented 7 years ago

Now I want to use a blackfly GigE 3.0 camera and ar_track_alvar to track a marker. Then I need a /tf which comes from the camera. Does anybody know how to do it?

Thank you!

mikepurvis commented 7 years ago

You can specify the frame_id you want as a standard parameter, eg:

https://github.com/ros-drivers/pointgrey_camera_driver/blob/0bcd3c54320f7265069686801f441a3592e7f4c7/pointgrey_camera_driver/launch/bumblebee.launch#L12

Then you'll need either a static transform publisher or a URDF + robot_state_publisher to get a transform for that specific frame, see: http://wiki.ros.org/urdf/Tutorials