Rock robot system

本文档详细介绍了如何安装Rock机器人构造套件及其核心组件,包括Ruby解释器的检查和必要的环境设置。提供了适用于不同操作系统的安装指导,并强调了加载生成的env.sh脚本的重要性。此外,还提供了更新现有安装的步骤。

https://www.rock-robotics.org/documentation/installation.html

Rock

the Robot Construction Kit

INTRO

TUTORIALS

CORE

ADDITIONAL CORE FUNCTIONALITY

Installation

This page explains how to install Rock and where to look for more information (tutorials, …).

Level of support

This section lists the operating systems where Rock is well tested, is untested and where the status is unknown. For well tested operating systems, our build server makes sure that Rock builds fine, and it is known to be actively used. Untested operating systems have had users (so, it did work at some point), but it is unknown whether it is still being actively used. Finally, unknown status operating systems are OS’s where Rock should work, but we have had no known report of its success or failure.

Well tested OS’s

 Latest LTS and Latest non-LTS. We let 6 months after a LTS release before deprecating the previous LTS.
 testing or unstable

Experimental OS’s

 Last known working version end of 2011
 Last known working version end of 2013
 Beta state, started 2014
 Last known working version 2012

Feel free to ask on the mailing list to ask for support for porting to another System. Please let us know any experience if you are using one of the above listed OS’s.

Legal Comments

This site is not affiliated with or endorsed by the Fedora Project. The Gentoo logo is a trademark of Gentoo Foundation Inc. and the rock-robotic framework is not part of the Gentoo project, and is not and is not directed or managed by Gentoo Foundation, Inc. Similar statements are true for all listed logos and systems. The Robot Construction Kit itself is independent from the operation systems and maintained on its own.

Status for other

Other Linux distributionsShould work fine. No osdeps.
MacOS X ©Known to have problems. No osdeps.

Installation: the easy way

  1. Make sure that the Ruby interpreter is installed on your machine. Rock requires ruby 2.3 or higher, which is provided on Debian and Ubuntu by the ruby2.3 package.

    ruby --version
    
  2. Create and “cd” into the directory in which you want to install the toolchain.
  3. To build the core system of the latest release, use this bootstrap.sh script. Save it in the folder you just created. For other options, see below.

    There is an important note for long-term Orocos users. See the red box below.

  4. In a console, run

    sh bootstrap.sh
    

    If the command fails (1) report the problem / error to the rock-users mailing list, (2) whatever you try to fix it, restart the bootstrapping by doing.

    rm -rf autoproj
    sh bootstrap.sh
    
  5. Important: as the build tool tells you, you must load the generated env.sh script at the end of the build !!!
    • source it in your current console

      . ./env.sh

    • but also add it to your .bashrc: append the following line at the end of $HOME/.bashrc

      . /path/to/the/directory/env.sh

  6. Read the autoproj guide for basic usage to know the basic operations of the build system. More bootstrapping documentation is also available at the same place

Other bootstrapping options

  • Build the master (development) version of rock Use this bootstrap.sh instead of the one listed above.
  • Build all of rock: Call

    autoproj update --all-known-packages
    autoproj build --all-known-packages
    

    after your basic installation is finished. ‘'’This is really meant for continuous integration servers’’’, it does not guarantee a consistent installation if you forget to add ‘’’–all-known-packages’’’ to any autoproj call. If you need a persistent complete installation of rock you must add all metapackages to your layout section.

  • Create a custom version Use one of the previous bootstrap scripts to install the base system and then cherry-pick the packages you want. Have a look at available packages, or search with
    autoproj show xsens
    

    Add the names of the required packages to the layout section in autoproj/manifest. For instance, if you want to get the Xsens IMU component the layout section should look like:

    layout:
       - rock.core
       - drivers/orogen/xsens_imu
    

Important for existing Orocos users The development workflow in Rock currently disables the Orocos deployer and the RTT scripting language by default, as they are quite expensive on the build times. Select “yes” at the “compatibility with OCL” question during the build to reenable this.

Maintaining a Rock installation

Once Rock is installed, you can update your installation by going to the root of the installation folder and do

autoproj update
autoproj build

You might have to reload the env.sh script after that as well, to export updated environment variables into your current shell. Simply opening a new console will do the trick (given you have added sourcing env.sh to your .bashrc).

### 关于Pi Hirobot的技术资料 #### Pi Hirobot概述 Pi Hirobot通常指的是围绕 Raspberry Pi 或其他类似的 SBC(单板计算机),如 Rock Pi,构建的机器人项目。这些平台因其强大的计算能力和丰富的接口而成为DIY爱好者和专业人士的理想选择[^1]。 对于希望深入了解 Pi Hirobot 的开发者来说,可以从以下几个方面获取相关信息: - **硬件资源** 对于基于瑞星微 RK3399 芯片组设计的 Rock Pi 4B Plus 板子而言,其具备多种外设接口支持,包括但不限于 USB、HDMI 输出以及 GPIO 接口等特性,这使得它非常适合用于开发复杂的机器人应用。 - **软件环境配置** 开发者可以选择适合的操作系统来启动自己的项目。例如,在树莓派平台上官方提供了多种预编译好的镜像文件供用户下载安装,从而简化了初期设置流程[^2]。同样地,针对更高级别的需求,也可以考虑定制化的 Linux 发行版或者 Windows IoT Core 等选项。 - **编程框架与工具链** 构建高效能的应用程序离不开合适的编程语言和支持库的选择。Python 是一种非常受欢迎的语言之一,尤其是在处理图像识别、机器学习等领域时表现尤为突出;C++ 则更适合底层驱动程序编写及性能敏感型任务实现。此外,ROS (Robot Operating System) 提供了一套完整的中间件和服务,极大地促进了不同组件间的协作通信。 ```python import rospy from std_msgs.msg import String def talker(): pub = rospy.Publisher('chatter', String, queue_size=10) rospy.init_node('talker', anonymous=True) rate = rospy.Rate(10) # 10hz while not rospy.is_shutdown(): hello_str = "hello world %s" % rospy.get_time() rospy.loginfo(hello_str) pub.publish(hello_str) rate.sleep() if __name__ == '__main__': try: talker() except rospy.ROSTimeMovedBackwardsException as e: pass ``` 上述代码展示了如何利用 ROS 创建一个简单的发布节点实例,这对于初学者理解消息传递机制很有帮助。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值