Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rosjava_actionlib
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Ebert
rosjava_actionlib
Commits
a90e2b01
Commit
a90e2b01
authored
9 years ago
by
Ernesto Corbellini
Browse files
Options
Downloads
Patches
Plain Diff
Updated readme.
Added instructions to the readme to build and run the test client.
parent
e22cc28e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+61
-2
61 additions, 2 deletions
README.md
with
61 additions
and
2 deletions
README.md
+
61
−
2
View file @
a90e2b01
# rosjava_actionlib
A port of actionlib to rosjava.
# Actionlib for Rosjava
A pure java implementation of
[
actionlib
](
http://wiki.ros.org/actionlib
)
for rosjava.
For now there is a basic client implemented with the following features:
*
send goal
*
send cancel
*
callback interface for status, feedback and result messages.
## Requirements:
*
ROS Indigo http://wiki.ros.org/
*
Rosjava
```$ sudo apt-get install ros-indigo-rosjava```
http://wiki.ros.org/rosjava/Tutorials/indigo/Installation
*
Java 1.7 or greater (OpenJDK should work)
*
Also make sure you have the following packages:
```ros-indigo-actionlib```
```ros-indigo-actionlib-tutorials```
```ros-indigo-genjava```
*
Download the project:
```$ git clone https://github.com/ernestmc/rosjava_actionlib.git```
## Compiling:
1.
Go to the package folder:
```$ cd rosjava_actionlib```
2.
Compile the code:
```$ catkin_make```
3.
Move to the project folder:
```$ cd src/rosjava_actionlib```
4.
Build the execution target:
```$ ./gradlew deployApp```
## Running:
1.
Open a new terminal and get a ros server running:
```$ roscore```
2.
In another terminal run the actionlib sample server:
```$ rosrun actionlib_tutorials fibonacci_server```
3.
Run our test client:
*
Go back to the package folder:
```cd ../..```
*
Source the project environment:
```$ source devel/setup.bash```
*
Run the client:
```$ rosrun rosjava_actionlib execute com.github.ekumen.rosjava_actionlib.TestClient```
## Output
The test client will connect to the fibonacci server and send it a goal. It
should then receive feedback from the server and a final response. The output
should look something like this:
```
Sending goal #3...
Goal sent.
Feedback from Fibonacci server: 0 1 1
Feedback from Fibonacci server: 0 1 1 2
Feedback from Fibonacci server: 0 1 1 2 3
Feedback from Fibonacci server: 0 1 1 2 3 5
Feedback from Fibonacci server: 0 1 1 2 3 5 8
Feedback from Fibonacci server: 0 1 1 2 3 5 8 13
Got Fibonacci result sequence!0 1 1 2 3 5 8 13
Sending goal #2...
Goal sent.
Feedback from Fibonacci server: 0 1 1
Feedback from Fibonacci server: 0 1 1 2
Feedback from Fibonacci server: 0 1 1 2 3
Feedback from Fibonacci server: 0 1 1 2 3 5
Feedback from Fibonacci server: 0 1 1 2 3 5 8
Feedback from Fibonacci server: 0 1 1 2 3 5 8 13
Got Fibonacci result sequence!0 1 1 2 3 5 8 13
Sending goal #1...
Goal sent.
Feedback from Fibonacci server: 0 1 1
Feedback from Fibonacci server: 0 1 1 2
Feedback from Fibonacci server: 0 1 1 2 3
Feedback from Fibonacci server: 0 1 1 2 3 5
Feedback from Fibonacci server: 0 1 1 2 3 5 8
Feedback from Fibonacci server: 0 1 1 2 3 5 8 13
```
This diff is collapsed.
Click to expand it.
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