Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rosjava Core Gradle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CeTI
ROS
ROS Java Packages
Rosjava Core Gradle
Commits
073bc19c
Commit
073bc19c
authored
3 years ago
by
Sebastian Ebert
Browse files
Options
Downloads
Patches
Plain Diff
removed bazel build, fixed dependencies, removed non-core-packages
parent
111c1d10
No related branches found
No related tags found
No related merge requests found
Changes
62
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
rosjava_tutorial_services/src/main/java/org/ros/rosjava_tutorial_services/Server.java
+0
-49
0 additions, 49 deletions
...c/main/java/org/ros/rosjava_tutorial_services/Server.java
settings.gradle
+0
-6
0 additions, 6 deletions
settings.gradle
with
0 additions
and
55 deletions
rosjava_tutorial_services/src/main/java/org/ros/rosjava_tutorial_services/Server.java
deleted
100644 → 0
+
0
−
49
View file @
111c1d10
/*
* 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.
*/
package
org.ros.rosjava_tutorial_services
;
import
org.ros.namespace.GraphName
;
import
org.ros.node.AbstractNodeMain
;
import
org.ros.node.ConnectedNode
;
import
org.ros.node.NodeMain
;
import
org.ros.node.service.ServiceResponseBuilder
;
import
org.ros.node.service.ServiceServer
;
/**
* This is a simple {@link ServiceServer} {@link NodeMain}.
*
* @author damonkohler@google.com (Damon Kohler)
*/
public
class
Server
extends
AbstractNodeMain
{
@Override
public
GraphName
getDefaultNodeName
()
{
return
GraphName
.
of
(
"rosjava_tutorial_services/server"
);
}
@Override
public
void
onStart
(
ConnectedNode
connectedNode
)
{
connectedNode
.
newServiceServer
(
"add_two_ints"
,
rosjava_test_msgs
.
AddTwoInts
.
_TYPE
,
new
ServiceResponseBuilder
<
rosjava_test_msgs
.
AddTwoIntsRequest
,
rosjava_test_msgs
.
AddTwoIntsResponse
>()
{
@Override
public
void
build
(
rosjava_test_msgs
.
AddTwoIntsRequest
request
,
rosjava_test_msgs
.
AddTwoIntsResponse
response
)
{
response
.
setSum
(
request
.
getA
()
+
request
.
getB
());
}
});
}
}
This diff is collapsed.
Click to expand it.
settings.gradle
+
0
−
6
View file @
073bc19c
...
...
@@ -19,13 +19,7 @@ include(
'apache_xmlrpc_common'
,
'apache_xmlrpc_server'
,
'rosjava'
,
'rosjava_geometry'
,
'rosjava_benchmarks'
,
'rosjava_test'
,
'rosjava_helpers'
,
'rosjava_tutorial_pubsub'
,
'rosjava_tutorial_right_hand_rule'
,
'rosjava_tutorial_services'
,
'docs'
,
)
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment