Skip to content

biorobotics/ReUSnakeStateEstimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReUSnakeStateEstimation

The general idea: Use a Matlab script/ROS code to control snake and read feedback. Send feedback out as ROS topics. Use reusnake_visualize to visualize the snake in Rviz. Use VINS-fusion to get visual odometry. We need to modify VINS-fusion to use additional information from snake sensors to improve the state estimation performance.

Install

  1. create a ROS workspace
mkdir -p snake_ws/src
cd snake_ws/src
catkin_init_workspace
cd ..
catkin_make
  1. install realsense SDK and ros package according to https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md and https://github.com/IntelRealSense/realsense-ros

  2. For Ubuntu kinetic, there is no build-in tranform_graph support. Install it from source:

cd snake_ws/src
git clone https://github.com/jstnhuang/transform_graph.git
cd ..
catkin_make -DCMAKE_BUILD_TYPE=Release
  1. install Ceres because VINS-Fusion needs this tool for VIO (http://ceres-solver.org/installation.html)

  2. pull the main code base and compile

cd snake_ws/src
git clone https://github.com/biorobotics/ReUSnakeStateEstimation.git
cd ..
catkin_make -DCMAKE_BUILD_TYPE=Release

Basic Usage of Matlab version

  1. Make sure your laptop and snake are in the same network.

  2. connect a joystick to your laptop

  3. Get into reusnake_matlab and use joy_test_snake.m to drive the snake.

  4. You may encounter problems when running joy_test_snake.m because the joystick function of matlab will perform differently on different laptops with different types of joystick (the array "buttons" will have different length). You should be able to easily fix that.

  5. roslaunch reusnake_visualize visualize.launch

Basic Usage of C++ version with VINS

  1. Make sure your laptop and snake are in the same network.

  2. connect a cellphone to biorobotics_local. open Hebi Mobile IO

  3. Open controller

rosrun reusnake_control control -t 0
  1. Start to stream from realsense camera
roslaunch realsense2_camera rs_camera_modify.launch 
rosrun  dynamic_reconfigure dynparam set /camera/stereo_module 'emitter_enabled' false
  1. start vins
roslaunch vins laptop_435.launch

Todo list

  1. Abhimanyu told me someone made a sea snake URDF before. Need to revise our current model https://github.com/alexansari101/snake_ws/tree/master/src/snake_control/urdf

  2. combine the visualization result of VINS into reusnake_visualize

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published