ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Building custom Franka controller for visual servoing

asked 2022-06-25 16:21:55 -0500

hmccarty gravatar image

My goal is to control the Franka Panda system in cartesian velocity coordinates using vision data that is being published within my ROS network.

I'm currently writing a custom controller as recommended in Franka ROS: https://frankaemika.github.io/docs/fr...

The cartesian velocity controller works well, but I have no method of subscribing to the input data since Franka ROS controllers are real-time.

What is the recommended method of achieving this? I saw somewhere that ROS controllers can host services, but this seems suboptimal. Do I have to implement a hardware interface? And if so, how I can write that to wrap a ROS subscriber?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-26 11:40:32 -0500

hmccarty gravatar image

I ended up using the realtime_tools package to solve this. You can use a RealtimeBuffer to pass data from your non-RT thread (like a subscriber callback) to a RT thread (like your controller update function). An example is detailed in the ackermann steering controller.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-06-25 16:21:55 -0500

Seen: 246 times

Last updated: Jun 25 '22