https://github.com/robincpc/mqtt_monitor
A ROS package for NexCOBOT SRB to send the robot arm information to AWS cloud through mqtt.
https://github.com/robincpc/mqtt_monitor
aws robot ros
Last synced: 11 months ago
JSON representation
A ROS package for NexCOBOT SRB to send the robot arm information to AWS cloud through mqtt.
- Host: GitHub
- URL: https://github.com/robincpc/mqtt_monitor
- Owner: RobinCPC
- License: mit
- Created: 2019-11-10T09:22:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-10T07:57:02.000Z (about 6 years ago)
- Last Synced: 2025-04-03T01:31:03.490Z (about 1 year ago)
- Topics: aws, robot, ros
- Language: C++
- Homepage:
- Size: 127 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mqtt_monitor
A ROS package for NexCOBOT Smart Robot Box (SRB) to send the robot arm information to AWS cloud through mqtt.
## Dependence
* NexCOBOT SRB robot_gateway
* [AWS IoT Bridge](https://github.com/aws-robotics/aws-iot-bridge-example) (Cloud extension for ROS)
* [mqtt_bridge](https://github.com/RobinCPC/mqtt_bridge) (note:I made some modified in my fork)
## Build
### Prebuild
``` bash
sudo apt-get update
rosdep update
```
### Clone dependent package
```bash
# Go to your workspace src
cd ~/caktin_ws/src
# Clone AWS_IoT_Bridge and mqtt_bridge
git clone https://github.com/aws-robotics/aws-iot-bridge-example
git clone https://github.com/RobinCPC/mqtt_bridge
# Clone this repository
git clone https://github.com/RobinCPC/mqtt_monitor
```
For used in AWS RoboMaker, please clone robomaker branch
``` bas
# Clone this repository in robomaker branch
git clone https://github.com/RobinCPC/mqtt_monitor -b robomaker
```
### catkin build/make
``` bash
# Back to workspace and run rosdep, then build
cd ~/catkin_ws
rosdep install --from-paths src --ignore-src -r -y
catkin build
```
## Run
### Start UR robot and NexCOBOT SRB robot_gateway
In terminal, use bash as root (because modbus connection use port 502 which need root permission)
``` bash
sudo bash
roslaunch robot_gateway SRB.launch
```
Open new terminal, connect robot gateway with UR robot
``` bash
rosservice call /TrfConnectInfo "vender: 'UR' ip: '192.168.0.200' port: 1" # note: the ip will need to find from UR controller
```
### Start mqtt_ur_monitor
``` bash
roslaunch mqtt_monitor mqtt_ur_monitor.launch
```
## Architecture
