Code Monkey home page Code Monkey logo

ts16_ros2_node's Introduction

ts16_ros2_node

This is a ROS2 driver for the TS16 Leica-Geosystems Robotic Total Station. Base code and README come from ROS version repository.

Installation

This instructions are for Ubuntu 20.04 with ROS Galactic/Foxy already installed.

Clone this repo into your catkin_ws (the code below creates a new ROS2 workspace named ts_ws in your home folder):

mkdir -p  ~/ts_ws/src && cd ~/ts_ws/src
[email protected]:John-HarringtonNZ/ts16_ros2_node.git

and install dependencies

sudo apt install python-dev python-pip
sudo -H python -m pip install --upgrade pip
sudo -H python -m pip install pyserial

Then build the workspace

cd ~/ts_ws
colcon build

Get Started

Connect the TS16 to your compute platform using the provided RS232 cable connection. Note what serial port name that appears and update the config file appropraitely. Ensure that the TS16 is on before launching the driver node. Once it is on, launch the node using the following command:

ros2 launch total_station total_station_launch.py

Once this is launched, it is expected that there will be termimal warnings printing out, since the current data streaming is not in the valid format (since the total station is not currentl measuring).

In order to get real-time positioning from the TS16 platform, it's important to use the "Autopoint" feature of the TS16. By default, the author has been able to get ~6Hz output from this alone, but it means that the TS16 is locally saving every point it streams. To avoid this the author has implemented a "hack" that tricks the system into maintaining autopoint mode but not to save the data. This is acheived through the following order of settings:

  1. Enable tracking by using the Power Search Feature
  • Confirm track by listening for the “Target Locked” announcement
  1. Go to Home -> Measure, Press ‘pg’ button to get to “Autopoint” tab
  2. Start “Autopoint” mode
    • Stop auto point mode after ~100 points
  3. Move over to the first measure tag using the ‘pg’ button.
  4. Turn on measure mode, using “Measure button”, then it should start to broadcast at a higher frequency
  • Measurement should start automatically and begin streaming data (while not recording data on TS)
  1. Check using command: ros2 topic hz /total_station_prism
  • The expected Hz should be around 7-9.

ts16_ros2_node's People

Contributors

john-harringtonnz avatar

Stargazers

Wu Hangyu avatar

Watchers

 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.