Skip to content
Snippets Groups Projects
Select Git revision
  • eb5af94e9caad2e7757dd2f1b95cc5212e6e06ec
  • main default
  • feature/cleanup-for-registry protected
  • kinetic
  • 0.3.7
  • 0.3.6
  • 0.3.5
  • 0.3.4
  • 0.3.3
  • 0.3.2
  • 0.2.2
  • 0.3.1
  • 0.3.0
  • 0.2.1
  • 0.1.6
  • 0.1.5
  • 0.2.0
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.0.1
  • 0.0.0
23 results

rosjava_tutorial_pubsub

  • Clone with SSH
  • Clone with HTTPS
  • RosJava Tools

    Build tools for rosjava and android repositories. Currently includes some cmake macros and python creation scripts.

    RosJava Build Demo

    > mkdir -p ~/rosjava/src
    > cd ~/rosjava/src
    > catkin_init_workspace .
    > wstool init .
    > wstool set rosjava_tools --git https://github.com/ros-java/rosjava_tools -v hydro-devel
    > wstool set rosjava_core --git https://github.com/rosjava/rosjava_core -v hydro-devel
    > wstool update
    > cd ~/rosjava
    > catkin_make

    The only changes made to the rosjava_core repo was to add a package.xml with a depends on rosjava_tools and a changes to the CMakeLists.txt as follows:

    ...
    find_package(catkin REQUIRED rosjava_tools)
    
    catkin_rosjava_setup()

    This cmake makro sets up dummy targets in the cmake configuration which call out to gradle in the actual make step. It also parses the package.xml to add target dependencies from each build_depends tag (subsequently letting you sequence builds across repositories).

    It also adds a global and package gradle-clean target.

    > catkin_make
    # Clean a single gradle package
    > cd ~/rosjava/build/rosjava_core
    > make gradle-clean-rosjava_core
    # Clean all gradle packages
    > cd ~/rosjava/build
    > make gradle-clean

    Android Build Demo

    Refer to http://ros.org/wiki/rosjava_tools.

    Moving

    This documentation will eventually merge with the rosjava_core and android_core documentation.