SLAMBOX ros driver is a ROS package to communicate with SLAMBOX.
- ROS noetic (Recommended)
- SLAMBOX-SDK (v0.2.0)
- glog (>=v0.6.0)
- CMake (>= 3.16.3)
- docker (Optional but highly recommended)
dialout
group permission. Use below command to includedialout
group to your linux account for UART communication.sudo usermod -aG dialout $USER
- Our docker image includes development environment. We highly recommend docker system.
# Clone this repository git clone https://github.com/j-marple-dev/slambox-ros.git --recursive # Change directory cd slambox-ros # Build docker image docker build . -t jmarpledev/slambox-ros -f docker/Dockerfile --build-arg UID=$(id -u) --build-arg GID=$(id -u)
- SLAMBOX-SDK: Please follow installation instruction on https://github.com/j-marple-dev/slambox-sdk
# Assuming that your ROS workspace is ~/catkin_ws
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
git clone https://github.com/j-marple-dev/slambox-ros.git --recursive
cd ../
catkin build slambox_ros
# Choose the shell which you are using
source devel/setup.{bash|zsh}
- Please modify config/client.yaml for configuration on client side.
- Make sure SLAMBOX Setting align with the
config.yaml
serial_communication:
enabled: true
port_name: "/dev/ttyUSB0"
baudrate: 921600
ethernet_communication:
enabled: false
server_addr: "192.168.101.101"
port: 21580
publish:
odom_topic: "/SLAMBOX/odom"
pointcloud_topic: "/SLAMBOX/pointcloud"
subscribe:
request_topic: "/SLAMBOX/request"
-
Running ROS node
roslaunch slambox_ros slambox_ros_client.launch
-
Check rostopic in another shell
rostopic hz /SLAMBOX/odom /SLAMBOX/pointcloud
-
Run docker container for running SLAMBOX-ROS client
docker run -ti --privileged -e DISPLAY=:0 -e TERM=xterm-256color -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v /dev:/dev -v $PWD:/home/user/catkin_ws/src/slambox-ros --network host jmarpledev/slambox-ros /usr/bin/zsh
-
Run docker container for running SLAMBOX-ROS client with rviz visualization
docker run -ti --privileged -e TERM=xterm-256color -e DISPLAY=:0 -v /dev:/dev -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $PWD:/home/user/catkin_ws/src/slambox-ros --network host jmarpledev/slambox-ros /usr/bin/bash -lic "roslaunch slambox_ros slambox_ros_client.launch rviz:=true"
-
Run docker container with shell (For development environment)
docker run -ti --privileged -e DISPLAY=:0 -e TERM=xterm-256color -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v /dev:/dev -v $PWD:/home/user/catkin_ws/src/slambox-ros --network host jmarpledev/slambox-ros /usr/bin/zsh
Please visit https://sbox.jmarple.ai for more information.
- For those who wish to contribute to this proejct please refer to the CONTRIBUING.md.