connect_ethernet.c
Go to the documentation of this file.
1 #include "urg_sensor.h"
2 
3 
4 int main(void)
5 {
6  urg_t urg;
7  int ret;
8 // イーサーネット接続でのセンサとの接続と距離データの取得
9 
10 const char connect_address[] = "192.168.0.10";
11 const long connect_port = 10940;
12 
13 // センサに対して接続を行う。
14 ret = urg_open(&urg, URG_ETHERNET, connect_address, connect_port);
15 // \todo check error code
16 return 0;
17 }
URG sensor.
Definition: urg_sensor.h:72
URG sensor.
イーサーネット接続
int main(void)
int urg_open(urg_t *urg, urg_connection_type_t connection_type, const char *device_or_address, long baudrate_or_port)
Definition: urg_sensor.c:684


urg_c
Author(s): Satofumi Kamimura , Katsumi Kimoto, Adrian Boeing
autogenerated on Wed Jun 10 2020 03:48:10