a1012112796 3f17f141b8 修正串口配置逻辑 4 tahun lalu
..
README.md d7249f0a4b Add Doc for porting 6 tahun lalu
RTTHardware.h 3f17f141b8 修正串口配置逻辑 4 tahun lalu
RTTTcpHardware.h 6e371c51f6 Update RTTTcpHardware.h 4 tahun lalu
Test.h e2fb49cf28 Add two service examples 6 tahun lalu
ros.h 762a758f61 Add TCP Support with SAL 6 tahun lalu

README.md

rosserial 移植

移植可以参照官网说明:

http://wiki.ros.org/rosserial_client/Tutorials/Adding%20Support%20for%20New%20Hardware

主要也就是实现这几个函数:

class Hardware
{

  Hardware();

  // any initialization code necessary to use the serial port
  void init(); 

  // read a byte from the serial port. -1 = failure
  int read()

  // write data to the connection to ROS
  void write(uint8_t* data, int length);

  // returns milliseconds since start of program
  unsigned long time();

};