GithubHelp home page GithubHelp logo

cyberdog_hci's Introduction

cyberdog_hci

运行前确保你的PC和铁蛋都已经连接至同一个局域网下。

1. 铁蛋开启多播模式

# 在铁蛋的Jetson NX板上执行这些命令
cd /etc/mi
sudo nano cyclonedds.xml
# 将文件里的内容照着下面这个例子修改:
# <?xml version="1.0" encoding="UTF-8" ?>
# <CycloneDDS xmlns="https://cdds.io/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="https://cdds.io/config https://raw.githubusercontent.com/eclipse-cyc$
#     <Domain id="42">
#         <General>
#             <NetworkInterfaceAddress>wlan0</NetworkInterfaceAddress>
#             <AllowMulticast>true</AllowMulticast>
#         </General>
#         <Discovery>
#             <ParticipantIndex>auto</ParticipantIndex>
#             <MaxAutoParticipantIndex>100</MaxAutoParticipantIndex>
#             <Peers>
#                 <Peer address="localhost"/>
#             </Peers>
#         </Discovery>
#     </Domain>
# </CycloneDDS>

# 重启铁蛋,让配置生效
sudo reboot

2. PC端ROS2远程连接配置

在PC端配置ROS_DOMAIN_ID,这样就能在同一局域网内收到铁蛋的ROS 2消息了

# 在你自己的电脑上执行这些命令
sudo gedit ~/.bashrc
# 在~/.bashrc这个文件里加两行:
export ROS_DOMAIN_ID=42
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
# 然后保存退出,执行该命令让配置生效:
source ~/.bashrc
# 然后安装依赖(我用的是ROS 2 Humble版本,根据你自己的ROS 2版本修改)
sudo apt install ros-humble-rmw-cyclonedds-cpp

3. PC端部署这个功能包

cd ~
mkdir -p hci_ws/src
cd hci_ws/src
git clone https://github.com/0nhc/cyberdog_hci.git
cd ..
colcon build
source install/setup.bash

4. 运行这个功能包

source ~/hci_ws/install/setup.bash
ros2 run cyberdog_remote client # 默认运行这个是站立

cyberdog_hci's People

Contributors

0nhc avatar

Watchers

 avatar

Forkers

changerc77

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.