GithubHelp home page GithubHelp logo

dantemiwa / pre-diablo_ros2_intern Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ddtrobot/diablo_ros2

0.0 0.0 0.0 1.92 MB

diablo ros2 package

License: Apache License 2.0

C++ 78.90% Python 9.66% C 6.79% CMake 4.65%

pre-diablo_ros2_intern's Introduction

DIABLO ROS2

License language platform

语言:English / 中文

​ 基于串口通信的 DIABLO 机器人二次开发控制接口,您可以通过 ROS2 快速上手。如果您想要不通 ROS 进行开发,也可以在 ROS 中修改 CMakeLists 的方式只对源码进行编译。我们将不断的更新 ROS2 的功能节点 , 希望能对您的机器人开发有所帮助。


diablo_robot_render

Basic Information 基本信息

  • X3pi 默认用户是 root , 密码为 root

    树莓派中默认用户是 diablo ,密码为 diablo123

  • X3pi 中IO默认串口号是 /dev/ttyS3

    树莓派中IO默认串口号是 /dev/ttyAMA0,如果您使用自定义的镜像,请重新配置串口映射

    您可以通过修改 Hal.init("/dev/ttyS3") 并重新编译达到切换硬件的目的

  • ROS_DOMAIN_ID=5 , 可通过 export ROS_DOMAIN_ID=5 连接并控制局域网中 DIABLO 的功能节点。

Installation 安装

Installation method Supported platform[s] Development Docs Official website
Source Linux , ros-foxy DIABLO 开发手册 Direct drive

您可以在大多数 Linux 设备中编译我们的 SDK 源码。或者在支持 ros-foxy 的设备中直接编译我们提供的 ros 包。

Quick Start 快速开始

  1. 创建ros工程文件夹
#make sure you have build all dependence.

sudo apt-get install python3-colcon-common-extensions
mkdir -p ~/diablo_ws/src
cd ~/diablo_ws/src

#clone API source code
git clone -b basic https://github.com/DDTRobot/diablo_ros2.git

cd ~/diablo_ws
colcon build
source install/setup.bash

#before starting the node , please check of serial port in diablo_ctrl.cpp is correct.
ros2 run diablo_ctrl diablo_ctrl_node

#run controller python script
ros2 run diablo_teleop teleop_node 
  1. 完整版编译
#make sure you have build all dependence.

sudo apt-get install python3-colcon-common-extensions python3-pip
sudo pip3 install rosdep
sudo rosdep init
rosdep update
mkdir -p ~/diablo_ws/src
cd ~/diablo_ws/src

#clone API source code
git clone https://github.com/DDTRobot/diablo_ros2.git
cd ~/diablo_ws
rosdep install -i --from-path src --rosdistro foxy -y

colcon build
source install/setup.bash

#before starting the node , please check of serial port in diablo_ctrl.cpp is correct.
ros2 run diablo_ctrl diablo_ctrl_node

#run controller python script
ros2 run diablo_teleop teleop_node 

Contents 目录

以下为Ros2 节点目录 :

pre-diablo_ros2_intern's People

Contributors

vulcan-yjx avatar homalozoa avatar

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.