Skip to content

RosJava message definition and serialization artifact generators.

Notifications You must be signed in to change notification settings

CentralLabFacilities/genjava

 
 

Repository files navigation

genjava

RosJava message definition and serialization artifact generators.

For future reference, executing the generator from the command line requires a command of the following kind:

java -classpath .:./message_generation-0.1.16.jar org.ros.internal.message.GenerateInterfaces

This doesn't work exactly though because it doesn't pull in the full classpath. Make sure that is set to include everything you need. You'll also need arguments of the kind we're currently using in the hydro groovy plugin:

        def generatedSourcesDir = "${p.buildDir}/generated-src"
        def generateSourcesTask = p.tasks.create("generateSources", JavaExec)
        generateSourcesTask.description = "Generate sources for " + pkg.name
        generateSourcesTask.outputs.dir(p.file(generatedSourcesDir))
        generateSourcesTask.args = new ArrayList<String>(['--output-path', generatedSourcesDir, '--package-path', pkg.directory, '--package-names', pkg.name])
        generateSourcesTask.classpath = p.configurations.runtimeClasspath
        generateSourcesTask.main = 'org.ros.internal.message.GenerateInterfaces'
        p.tasks.compileJava.source generateSourcesTask.outputs.files

About

RosJava message definition and serialization artifact generators.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 63.4%
  • EmberScript 30.9%
  • CMake 5.7%