Main Page
Related Pages
Classes
Files
Examples
File List
File Members
current
dox
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_t
URG sensor.
Definition:
urg_sensor.h:72
urg_sensor.h
URG sensor.
URG_ETHERNET
イーサーネット接続
Definition:
urg_connection.h:34
main
int main(void)
Definition:
connect_ethernet.c:4
urg_open
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