GithubHelp home page GithubHelp logo

mrobot's Introduction

mrobot ros package by ROSClub

环境

系统环境:
ubuntu14.04 + ros-indigo-desktop
ubuntu16.04 + ros-kinetic-desktop
推荐组合:
NVIDIA Jetson TK1 (ubuntu14.04 + ros-indigo-desktop)
树莓派3 (ubuntu16.04 + ros-kinetic-desktop)

工作空间

mkdir -p mrobot_ws/src
cd ..
catkin_init_workspace
cd src
git clone https://github.com/ROSClub/mrobot.git
cd ~/mrobot_ws && catkin_make

STM32通信协议

⼀帧数据为: [消息头(2字节)] [命令(2字节)] [⻓度(1字节)] [数据(n字节, n=⻓度)] [校验(1字节)] [消息尾(2字节)] 消息头固定为[0x55 0xaa],消息尾固定为[0x0d 0x0a]

主控发送⽤命令参数

(1)0x5a 0x5a: 发送速度信息和电池信息
(2)0x5a 0x55: 发送速度信息,电池信息和超声波信息
(3)0x5a 0xaa: 发送速度信息,电池信息和六轴传感器信息
(4)0x5a 0xa5: 发送速度信息,电池信息,超声波信息和六轴传感器信息
(5)0xa5 0x5a: 发送速度信息
(6)0xa5 0x55: 发送电池信息
(7)0xa5 0xaa: 发送超声波信息
(8)0xa5 0xa5: 发送六轴传感器信息

主控接收⽤命令参数

(1)0x55 0xaa: 请求发送速度信息和电池信息
(2)0x55 0x55: 请求发送速度信息,电池信息和超声波信息
(3)0x55 0xa5: 请求发送速度信息,电池信息和六轴传感器信息
(4)0x55 0x5a: 请求发送速度信息,电池信息,超声波信息和六轴传感器信息
(5)0xaa 0xaa: 请求发送速度信息
(6)0xaa 0x55: 请求发送电池信息
(7)0xaa 0xa5: 请求发送超声波信息
(8)0xaa 0x5a: 请求发送六轴传感器信息
详细协议见使用手册通信协议章节,或者查看源代码

USB绑定

见使用手册3.4节,购买小车都会赠送详细的使用手册,及其大量资料。

主从机配置

⼿动配置略麻烦,新⼿不友好。
在远程主机使⽤我们提供的⼩⼯具⼀键配置即可
cd ~/mrobot_ws/src/mrobot/startup/Bin
./ToolBox

串口工具

主要⽤来测试⼩⻋数据是否正常,以及⼤家更改源码后验证使⽤。
cd ~/mrobot_ws/src/mrobot/startup/Bin
./ToolBox

基础操作

1、键盘控制实体机器人
roslaunch mrobot_bringup mrobot_core.launch
roslaunch mrobot_teleop mrobot_teleop_key.launch
2、键盘控制实体机器人并查看
roslaunch mrobot_bringup mrobot_robot.launch
roslaunch mrobot_bringup mrobot_model.launch
roslaunch mrobot_teleop mrobot_teleop_key.launch
3、SLAM
传感器为rplidar A2
roslaunch mrobot_bringup mrobot_robot.launch
roslaunch mrobot_slam mrobot_slam.launch
rosrun rviz rviz -d rospack find mrobot_slam/rviz/mrobot_slam.rviz
roslaunch mrobot_teleop mrobot_teleop_key.launch
4、Navigation
roslaunch mrobot_bringup mrobot_robot.launch
roslaunch mrobot_navigation mrobot_navigation.launch map_file:=/home/m1/map/ 20170826.yaml
rosrun rviz rviz -d rospack find mrobot_navigation/rviz/mrobot_nav.rviz
5、其他
时间控制⼩⻋前进⼀⽶并返回
rosrun mrobot_bringup timed_out_and_back.py
时间控制⼩⻋前进⼀⽶并返回
rosrun mrobot_bringup odom_out_and_back.py
在地⾯⾏⾛⼀个边⻓为⼀⽶的正⽅格
rosrun mrobot_bringup nav_square.py
使⽤PS2遥控控制⼩⻋
roslaunch mrobot_teleop mrobot_teleop_joystick.launch

待续。。

mrobot's People

Contributors

rosclub avatar

Stargazers

Mr.Fan avatar  avatar  avatar pp avatar  avatar  avatar  avatar Ziyang Song avatar  avatar Mr.zhang avatar studyinglover avatar plainchan avatar Xiaolong He avatar  avatar  avatar  avatar shipeng~peng avatar  avatar Jing Wen avatar  avatar Ping Du avatar Albert avatar  avatar  avatar  avatar Jack King avatar flame.yu avatar  avatar  avatar XYC avatar Baiyue avatar  avatar ForestL avatar zha0ming1e avatar 李呈祥 avatar zhren711 avatar GUIMIANRUI avatar  avatar  avatar Joey avatar  avatar Peter avatar  avatar  avatar Torchmm avatar  avatar Wang avatar  avatar  avatar MiniCore avatar GoodBai avatar itfanr avatar  avatar SCH avatar  avatar jimneylee avatar Yizheng Zhang avatar Chunlei Qu avatar W Nga avatar 了不起的菠萝君 avatar

Watchers

W Nga avatar James Cloos avatar Andy Cui avatar  avatar  avatar 了不起的菠萝君 avatar  avatar  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.