nao机器人学习——hello world(1)

这篇博客介绍了如何使用Aldebaran的C++ SDK为NAO机器人创建项目。首先,根据官方文档修改CMakeLists.txt文件,接着在main.cpp中处理IP和端口的参数。通过这个过程,读者可以学习到NAO机器人的基本编程步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

all code here is from Aldebaran documentation

link: http://doc.aldebaran.com/2-1/dev/cpp/tutos/create_module.html#patching-main-cpp

After finish installing C++ SDK, writing code is provided in documentation.

create a folder as project folder, then use command

qisrc create mymodule
in cmd

four files will be created

//these four files is what I created
CMakeLists.txt
main.cpp
qiproject.xml
test.cpp

//these ones are in website
CMakeLists.txt
main.cpp
qibuild.cmake
qibuild.manifest

1. change CMakeLists.txt

original file here

cmake_minimum_required(VERSION 2.8)

# Gi
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值