1 Star 0 Fork 13

ROS/rt-rosserial

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
SConscript 1.49 KB
Copy Edit Raw Blame History
wuhanstudio authored 2021-06-19 13:13 . [example] add kuboki robot
from building import *
import rtconfig
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Glob('src/*.cpp')
path = [cwd + '/']
path += [cwd + '/port']
path += [cwd + '/src']
LOCAL_CCFLAGS = ''
if GetDepend('ROSSERIAL_USING_HELLO_WORLD_UART'):
src += Glob('examples/hello_world_serial.cpp')
if GetDepend('ROSSERIAL_USING_BLINK_UART'):
src += Glob('examples/blink.cpp')
if GetDepend('ROSSERIAL_USING_BLINK_CLASS_UART'):
src += Glob('examples/blink_class.cpp')
if GetDepend('ROSSERIAL_USING_BUTTON_UART'):
src += Glob('examples/button.cpp')
if GetDepend('ROSSERIAL_USING_PUB_SUB_UART'):
src += Glob('examples/pubsub.cpp')
if GetDepend('ROSSERIAL_USING_LOGGING_UART'):
src += Glob('examples/logging.cpp')
if GetDepend('ROSSERIAL_USING_TF_UART'):
src += Glob('examples/tf.cpp')
if GetDepend('ROSSERIAL_USING_SERVICE_SERVER_UART'):
src += Glob('examples/service_server.cpp')
if GetDepend('ROSSERIAL_USING_SERVICE_CLIENT_UART'):
src += Glob('examples/service_client.cpp')
if GetDepend('ROSSERIAL_USING_HELLO_WORLD_TCP'):
src += Glob('examples/hello_world_tcp.cpp')
if GetDepend('ROSSERIAL_USING_KOBUKI_CONTROL'):
src += Glob('examples/kobuki_control.cpp')
if rtconfig.CROSS_TOOL == 'gcc':
LOCAL_CCFLAGS += ' -std=c99'
group = DefineGroup('rosserial', src, depend = ['PKG_USING_ROSSERIAL'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
Return('group')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/Ros2021/rt-rosserial.git
git@gitee.com:Ros2021/rt-rosserial.git
Ros2021
rt-rosserial
rt-rosserial
master

Search