Robotics StackExchange | Archived questions

Custom hardware driver

This is my first attempt at ROS, and I have spent a lot of time researching and reading, but there is one "small" piece that escapes me... Here is my setup

PC (Ubuntu 14.04) Full ROS install <------- Ethernet -------> PC/104 (Ubuntu 14.04) minimal ROS install ..................................................................................................| ..............................................................................................PC/104 Digital I/O card (PCM-3724)

I was able to run roscore on the PC/104, and start turtlesimnode and turtleteleopkey on the PC... so far so good.

Now I want to interface to the PCM-3724. What would be the best way to write the write() and read() functions? Do I write a linux device driver and then when I start my new node pass in the /dev/xxx parameter?

Any example code (or links to) of writing and reading would be greatly appreciated!!!

Asked by MarkG on 2014-11-25 15:08:06 UTC

Comments

Answers