bi3ri / tubular_toolpath_creator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TUBULAR TOOLPATH CREATOR

cover

Installation

# Create a new ROS workspace
mkdir -p ~/catkin_ws/src && cd ~/catkin_ws/src

# Download demo repository
git clone https://github.com/bi3ri/tubular_toolpath_creator.git

# Install dependencies
pip3 install vtk numpy pyvista open3d

# Build workspace
cd ~/catkin_ws && catkin build 

# Source workspace
source ~/catkin_ws/devel/setup.bash

Dependencies

The centerline algorithm relies on vmtk, which needs to run with python 3.5. We decided to use conda to create a compatible enviornment.

# Conda environment
create -n vmtk -c vmtk python=3.5 itk vtk vmtk 

Run

The Tubular-toolpath-creator can be used by starting the launch file with a defined mesh path. If the mesh_path is left empty a node with a service is started.

# Start the toolpath_creator_node
roslaunch tubular_toolpath_creator debug:=True mesh_path:=<mesh_path>
# Info: Debug is by default false. If mesh_path is left empty, a node is started.
# Parameters: There are many parameters to adapt. See the launch file to get an overview.

Service

#request
string mesh_path
---
#response
std_msgs/Float64MultiArray raster_degrees
geometry_msgs/PoseArray[] raster_array

About


Languages

Language:Python 90.4%Language:CMake 9.4%Language:Shell 0.2%