Skip to content
Snippets Groups Projects
Commit 140a7ea9 authored by Daniel Stonier's avatar Daniel Stonier
Browse files

message generation test handling.

parent 5b2a4e1b
No related branches found
No related tags found
No related merge requests found
Showing
with 88 additions and 0 deletions
rosjava_test_msgs/Composite data
/*
* Copyright (C) 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
version = '0.1.0'
/* Can't do this since the plugin is in this multi-project now */
/* project.catkin.packages['rosjava_messages'].generateMessageArtifactInSubFolder(project, 'rosjava_test_msgs') */
dependencies {
compile project(':message_generation')
}
def generatedSourcesDir = "${project.buildDir}/generated-src"
task generateSources(type: JavaExec) {
description "Generate sources for " + project.name
outputs.dir file(generatedSourcesDir)
args new ArrayList<String>([generatedSourcesDir, name])
classpath configurations.runtime
main = 'org.ros.internal.message.GenerateInterfaces'
}
compileJava.source generateSources.outputs.files
# composite message. required for testing import calculation in generators
CompositeA a
CompositeB b
# This represents an orientation in free space in quaternion form.
float64 x
float64 y
float64 z
float64 w
# copy of geometry_msgs/Point for testing
float64 x
float64 y
float64 z
# caller_id of most recent node to send this message
string caller_id
# caller_id of the original node to send this message
string orig_caller_id
int32[] int32_array
float32[] float32_array
time[] time_array
TestString[] test_string_array
# TODO: array of arrays
Header header
# caller_id of most recent node to send this message
string caller_id
# caller_id of the original node to send this message
string orig_caller_id
byte auto_header # autoset header on response
# Integration test message of all primitive types
# caller_id of most recent node to send this message
string caller_id
# caller_id of the original node to send this message
string orig_caller_id
string str
byte b
int16 int16
int32 int32
int64 int64
char c
uint16 uint16
uint32 uint32
uint64 uint64
float32 float32
float64 float64
time t
duration d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment