Giter Site home page Giter Site logo

cython_catkin_example's Introduction

cython_catkin_example

Introduction

This is a ROS package that demonstrates how to integrate Cython in the standard catkin-based ROS building system. In particular, it demonstrates how to manipulate PCL point clouds through a minimal interface.

It is heavily based on cython-cmake-example by thewtex (https://github.com/thewtex/cython-cmake-example).

Setup

This is a normal catkin package.

Quick reference:

  1. source the base setup.bash if needed
  2. create the directories my_ros_ws and my_ros_ws/src
  3. inside my_ros_ws/src execute catkin_init_workspace
  4. inside my_ros_ws/src clone this repository
  5. inside my_ros_ws execute catkin_make
  6. you should be able to execute "rosrun cython_catkin_example example.py", which should not report any existing point cloud.

Playing around

  1. source my_ros_ws/devel/setup.bash
  2. execute rospython
  3. in the shell, from cython_catkin_example import cython_catkin_example
  4. create an object myobject = cython_catkin_example.PyCCExample()
  5. load a PCL point cloud from a PCD file myobject.load_point_cloud_from_file("/path/to/file.pcd")
  6. list current point clouds name_list = myobject.get_point_xyz_clouds_names()
  7. get details about it myobject.get_point_xyz_cloud_details("name")

You are free to explore the rest of the few functionalities and to extend it as you please.

Hope this can be helpful.

cython_catkin_example's People

Contributors

marcoesposito1988 avatar

Watchers

James Cloos avatar Sam Pfeiffer avatar  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.