Files
blackbird/robot_agent/Makefile
T
qing 7e44025671 feat(robot_agent): 基于 libhttp 的 DeepSeek 视觉机器人 agent 骨架
- 工具循环:capture_image / get_robot_status / spawn_subagent
- 子代理:技能超集(run_command 带超时截断、read_file / write_file)
- V4L2 摄像头抓帧:MJPEG 优先零转码,YUYV+libjpeg 回退,/dev/video* 自动探测
- 时间戳注入:system prompt 会话级当前时间 + 工具结果执行时间
- CLI:--prompt-file / --camera / --camera-device / --model / --max-turns
2026-08-21 14:47:29 +00:00

23 lines
560 B
Makefile

# robot_agent — 基于 libhttp 的 DeepSeek 视觉机器人 agent 骨架
CXX := g++
CPPFLAGS := --std=c++20 -O2 -Wall -Wextra
LIBHTTP_DIR := ../libhttp
INCS := -I $(LIBHTTP_DIR)/inc
LIBS := -L $(LIBHTTP_DIR)/build -lus_httpclient -lboost_json -lssl -lcrypto -lcurl -ljpeg -lpthread
RPATH := -Wl,-rpath,$(LIBHTTP_DIR)/build
TARGET := robot_agent
SRCS := main.cpp agent.cpp subagent.cpp tools.cpp camera.cpp
all: $(TARGET)
$(TARGET): $(SRCS) tools.hpp
$(CXX) $(CPPFLAGS) $(INCS) $(SRCS) $(LIBS) $(RPATH) -o $@
clean:
rm -f $(TARGET)
.PHONY: all clean