run a Freight robot (2)

1.  Network Setup

Connecting Freight to a Monitor

The easiest way to configure the wireless networking is to connect a monitor, keyboard, and mouse and use the Network Manager interface.

Referencing the picture of Access Board in the previous post, we should see an HDMI port on the real robot. While, actually we only get a Display port on the robot we have.

So we need to find a cable for the Display Port before everything goes on.

Then we need to connect a monitor, USB keyboard and USB mouse to the side panel ports. Then use them to select your network from the networking menu, it looks like an empty quarter circle pointed downward when disconnected, in the upper right hand corner of the screen. Once it is set it should remain connected through all reboots.

Networking

The robot has both internal and external Ethernet-based networks, as well as an external wireless network interface. The external network interfaces are intended for users to connect to the robot, while the internal networks are used to send data between the internal components of the robot.

The majority of communication between components onboard Fetch and Freight happen via the internal Ethernet network. This network is located in the 10.42.42.0/24 subnet and connects the robot computer to the devices listed in the table below. As such, it is important that your building networks do not use the same subnet.

Device IP Address
Laser range finder 10.42.42.10
Mainboard 10.42.42.42
Gripper 10.42.42.43

There are two possible interfaces for connecting to the robot computer: the wireless interface and the wired interface. Most users will prefer to use the wireless interface, however the access panel also includes a Gigabit Ethernet interface for stationary tasks that require higher bandwidth.

Warning

Never drive the robot with an Ethernet cable attached to the access panel.

Remotely Logging In

Once the robot is turned on and the robot is on the network, ssh into the computer of the robot using the default fetch user account:

>$ ssh [email protected]<robot_name_or_ip>

Default User Account

Each robot ships with a default user account, with username fetch and password robotics. It is recommended to change the password when setting up the robot.

Creating User Accounts

It is recommended that each user create their own account on the robot, especially when developing from source. To create an account on the robot, ssh into the robot as the fetch user, and run the following commands:

>$ sudo adduser USERNAME
>$ sudo usermod -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare USERNAME

2. Other Preparation

Clock Synchronization

It is recommended to install the chrony NTP client on both robots and desktops in order to keep their time synchronized. By default, robots do not ship with chrony installed. To install chrony on Ubuntu:

> sudo apt-get update
> sudo apt-get install chrony

Upstart Services

Fetch and Freight use upstart to start and manage various services on the robot. The following upstart services start when the robot is booted:

Name Description
roscore starts a roscore
robot starts robot drivers, requires roscore
sixad driver for robot joystick over bluetooth
soundplay starts the sound_play node for audio in ROS

Upstart service can be restart with the service command. For instance, to restart the robot drivers:

>sudo service robot stop
>sudo service robot start

Since the roscore runs independently of the drivers, the drivers can be restarted without having to restart remote instances of RVIZ or similar ROS tools. Note that this also means the parameter server will not be reset when restarting the drivers, and so a roscore restart may be required if the parameter server has been corrupted by a user script.

Log Files

A number of log files are created on the robot. Log files related to upstart services can be found in the /var/log/upstart folder, the name of the log will be service.log.

ROS logs for the robot and roscore upstart services will be created in the /var/log/ros folder.

Speakers and Audio

The mainboard of Fetch and Freight contains a USB audio device. While the device enumerates as a standard Linux audio device, we recommend using the sound_play ROS package to access the speakers. sound_play is automatically started as an upstart service when the robot starts. This service is pre-configured to have the correct group-level access to the audio system. If using the speakers directly through a Linux interface, be sure to add your user to the audio group in order to actually access the speakers.

While the sound_play ROS interface allows users to set an audio level, the audio level set is a percentage of the audio level set for Linux. To adjust the Linux audio level, use the following command and follow the on-screen instructions:

>$ sudo su ros -c "alsamixer -c 1"
时间: 2024-08-07 12:29:22

run a Freight robot (2)的相关文章

run a Freight robot (3)

5.Logging In Once the robot is turned on and the robot is on the network, ssh into the computer of the robot using the default fetch user account: >$ ssh [email protected]<robot_name_or_ip> robot_name_or_ip will be either an IPv4 network address,

implement &quot;slam_karto&quot; package on a Freight robot

1. login ssh [email protected]<robot ip or robot name> 2.  set robot master modify .bashrc in robot's computer using ssh export ROS_MASTER_URI=http://<robot ip or robot name>:11311 export ROS_IP=<robot ip> modify .bashrc in local compute

几个bat文件(关于robot freamwork安装)

如果安装后 没有这几文件,或者在运行后 提示 文件缺少这个文件 , 就需要手动创建. 一般文件在 :C:\Python27\Scripts 这个目录下 1.pybot.bat文件: @echo off python -m robot.run %* 2.robot.bat文件: @echo off python -m robot.run %* 3.rebot.bat文件: @echo off python -m robot.rebot %* 原文地址:https://www.cnblogs.com

robotframework笔记1--安装与卸载

机器人框架 实现与 Python 和支持也 Jython (JVM)和 IronPython (. net). 在安装框架之前, 一个明显的 先决条件 就是安装至少一个. 下面列出了不同的方法来安装机器人框架本身和解释 更彻底地在随后的部分. 安装与pip 使用pip推荐的方法是安装机器人框架. 随着 标准的Python包管理器包含在最新的Python, Jython和IronPython版本. 如果你已经pip,你 可以执行: pip install robotframework 从源代码安装

fabric --- Python中的批量远程管理和部署工具

Fabric是Python中一个非常强大的批量远程管理和部署工具,常用于在多个远程PC上批量执行SSH任务. 常见的使用方法大概总结如下: 1, 首先,要将批量执行的任务写入到一个fabfile.py中, # -*- coding:utf-8 -*- from fabric.api import run, local, roles, env, cd env.hosts=[ '192.168.1.110', '192.168.1.111', '192.168.1.112' ] env.user="

JavaScript动漫作品(闭幕)

笔者:Steven Riche 发布时间:2014年2一个月18 原文链接:http://code.tutsplus.com/tutorials/javascript-animation-that-works-part-4-of-4--net-35263 翻译:子毅 --------- 将JavaScript进行究竟 碎碎两句 折腾了一个多月.杂七杂八的事情加在一起.简直糟透了. 博客停了大概有一个月了,从今天起一切都是新的,做好自己就OK了 --------------------------

robotframework笔记19

后处理输出 使用时自动测试 在测试执行报告和日志生成,并使用它 分别允许创建自定义报告和日志以及结合 和合并的结果. 使用Rebot 简介 rebot [options] robot_outputs python|jython|ipy -m robot.rebot [options] robot_outputs python|jython|ipy path/to/robot/rebot.py [options] robot_outputs java -jar robotframework.jar

JavaScript动画工作原理之(完结篇)

原作者:Steven Riche 发布时间:2014年2月18日 原文链接:http://code.tutsplus.com/tutorials/javascript-animation-that-works-part-4-of-4--net-35263 翻译:子毅 --------- 将JavaScript进行到底 碎碎两句 折腾了一个多月,杂七杂八的事情加在一起,简直糟透了.博客停了大概有一个月了,从今天起一切都是新的,做好自己就OK了 ---------------------------

COMP2401 - Assignment

COMP2401 - Assignment #5(Due: Mon. Mar 25, 2019 @ 12 noon)In this assignment, you will make a simulator for simple robots that uses multiple threads and allowsmultiple robots to connect to it … with each robot running as its own process.To begin this