Skip to content

Commit 364fa04

Browse files
committed
micro-ROS local package
1 parent ba4eea6 commit 364fa04

File tree

4 files changed

+155
-2
lines changed

4 files changed

+155
-2
lines changed

peripherals/rosserial/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
"version": "kinetic-v1.0.0",
2727
"URL": "https://github.com/wuhanstudio/rt-rosserial.git",
2828
"filename": "rosserial-kinetic-1.0.0.zip",
29-
"VER_SHA": "8368e65b025fae86669faecd4a324eb8a037457b"
29+
"VER_SHA": "NULL"
3030
},
3131
{
3232
"version": "melodic-v1.0.0",
3333
"URL": "https://github.com/wuhanstudio/rt-rosserial.git",
3434
"filename": "rosserial-melodic-1.0.0.zip",
35-
"VER_SHA": "762a758f61e773460f0657c44f7bc832106af0fc"
35+
"VER_SHA": "NULL"
3636
},
3737
{
3838
"version": "kinetic-latest",

system/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ source "$PKGS_DIR/packages/system/reb/Kconfig"
5656
source "$PKGS_DIR/packages/system/rmp/Kconfig"
5757
source "$PKGS_DIR/packages/system/r-rhealstone/Kconfig"
5858
source "$PKGS_DIR/packages/system/heartbeat/Kconfig"
59+
source "$PKGS_DIR/packages/system/micro_ros_local/Kconfig"
5960
endmenu

system/micro_ros_local/Kconfig

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
menuconfig PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE
2+
bool "micro-ROS package for RTThread"
3+
select RT_USING_POSIX_FS
4+
select RT_USING_POSIX_SOCKET
5+
select RT_USING_POSIX_SELECT
6+
select RT_USING_SAL
7+
select BSP_USING_ONCHIP_RTC
8+
default n
9+
10+
if PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE
11+
12+
config PKG_MICRO_ROS_RTTHREAD_PACKAGE_PATH
13+
string
14+
default "/packages/system/micro_ros_local"
15+
16+
config RTT_UCLIENT_PLATFORM_RTTHREAD
17+
bool "Using Micro XRCE-DDS Client Library in RT-Thread"
18+
default n
19+
20+
config RTT_URCLC_PLATFORM_RTTHREAD
21+
bool "Using Micro rclc Library in RT-Thread"
22+
default y
23+
24+
menu "Include examples"
25+
config PKG_RCLC_EXAMPLE
26+
bool "Enable micro-ROS rclc platform example"
27+
depends on RTT_URCLC_PLATFORM_RTTHREAD
28+
default y
29+
30+
config PKG_UCLIENT_PLATFORM_EXAMPLE
31+
bool "Enable micro-ROS uxr platform example"
32+
depends on RTT_UCLIENT_PLATFORM_RTTHREAD
33+
default n
34+
endmenu
35+
36+
choice
37+
prompt "Distribution"
38+
default PKG_MICRO_ROS_RTTHREAD_PACKAGE_FOXY_DISTRO
39+
help
40+
Select the micro-ROS distro
41+
42+
config PKG_MICRO_ROS_RTTHREAD_PACKAGE_HUMBLE_DISTRO
43+
bool "Humble"
44+
45+
config PKG_MICRO_ROS_RTTHREAD_PACKAGE_FOXY_DISTRO
46+
bool "Foxy"
47+
endchoice
48+
49+
menu "Memory configuration"
50+
config PKG_MICRO_ROS_RTTHREAD_PACKAGE_MAX_NODES
51+
int "# Nodes"
52+
default 1
53+
54+
config PKG_MICRO_ROS_RTTHREAD_PACKAGE_MAX_PUBLISHERS
55+
int "# Publishers"
56+
default 1
57+
58+
config PKG_MICRO_ROS_RTTHREAD_PACKAGE_MAX_SUBSCRIBERS
59+
int "# Subscribers"
60+
default 1
61+
62+
config PKG_MICRO_ROS_RTTHREAD_PACKAGE_MAX_SERVICES
63+
int "# Services"
64+
default 0
65+
66+
config PKG_MICRO_ROS_RTTHREAD_PACKAGE_MAX_CLIENTS
67+
int "# Clients"
68+
default 0
69+
70+
endmenu
71+
72+
menu "ROS node communication mode"
73+
74+
config PKG_MICRO_ROS_USE_SERIAL
75+
bool "serial"
76+
default n
77+
if PKG_MICRO_ROS_USE_SERIAL
78+
menu "serial configuration"
79+
config MICRO_ROS_SERIAL_NAME
80+
string "select the micro serial dev name"
81+
default "vcom"
82+
endmenu
83+
endif
84+
85+
config PKG_MICRO_ROS_USE_UDP
86+
bool "udp"
87+
default n
88+
if PKG_MICRO_ROS_USE_UDP
89+
menu "udp configuration"
90+
config MICRO_ROS_UDP_IP
91+
string "select the micro udp ip"
92+
default "127.0.0.1"
93+
94+
config MICRO_ROS_UDP_PORT
95+
string "select the micro udp port"
96+
default "8080"
97+
endmenu
98+
endif
99+
100+
config PKG_MICRO_ROS_USE_TCP
101+
bool "tcp"
102+
default n
103+
if PKG_MICRO_ROS_USE_TCP
104+
menu "tcp configuration"
105+
config MICRO_ROS_TCP_IP
106+
string "select the micro tcp ip"
107+
default "127.0.0.1"
108+
109+
config MICRO_ROS_TCP_PORT
110+
string "select the micro tcp port"
111+
default "8080"
112+
endmenu
113+
endif
114+
115+
endmenu
116+
117+
endif
118+

system/micro_ros_local/package.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "micro_ros_rtthread_package",
3+
"description": "Localized build of micro-ROS.",
4+
"description_zh": "本地化构建micro-ROS",
5+
"enable": "PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE",
6+
"keywords": [
7+
"micro_ros"
8+
],
9+
"category": "system",
10+
"author": {
11+
"name": "kurisaW",
12+
"email": "[email protected]",
13+
"github": "kurisaW"
14+
},
15+
"license": "Apache-2.0",
16+
"repository": "https://github.com/kurisaW/micro_ros_local",
17+
"icon": "unknown",
18+
"homepage": "unknown",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "v1.0.0",
23+
"URL": "https://github.com/kurisaW/micro_ros_local/archive/refs/tags/v1.0.0.zip",
24+
"filename": "1.0.0.zip",
25+
"VER_SHA": "fill in the git version SHA value"
26+
},
27+
{
28+
"version": "latest",
29+
"URL": "https://github.com/kurisaW/micro_ros_local.git",
30+
"filename": null,
31+
"VER_SHA": "rtt"
32+
}
33+
]
34+
}

0 commit comments

Comments
 (0)