Comments (4)
Hi Justin! Nice to "meet" you this way.
I'm not up to speed on the new ActionServer, I think it's still somewhat early in the development of it. But you can always fall back to just subscribing (goal and cancel) and publishing (result, feedback, and status) messages on the five action topics, because that's all action servers really do.
from rosnodejs.
Actually, looking at the code, can't you just listen for 'goal' events on the ActionServerInterface?
from rosnodejs.
Thanks Christian, it's nice to meet you, too.
My understanding is that action servers provide added value on top of publishing to the 5 topics, mostly bookkeeping in terms of the goal IDs and timestamps. I could subscribe to the goal and cancel topics, but without doing the bookkeeping myself, my action server probably won't conform to other action client implementations.
Handling ActionServerInterface's goal event gives me the contents of the goal message, but it doesn't create a GoalHandle.
I'm personally content to work around this issue by just creating a fork and making a small change. However, I'm curious what the long-term plan is for action servers. Does someone already plan on more fully implementing action servers? Or is it something that's awaiting outside contributions?
from rosnodejs.
All very true. The ActionServerInterface
makes minimal action servers possible, but misses a lot of the details.
Giving access to the actual goal also seems to be something I missed in trying to parse the guts of actionlib's source code... feel free to make a pull request if you have the opportunity. I haven't had time to come back to it since the initial work.
It's probably also worth mentioning that we recently (yesterday, actually) pulled the actions in rosnodejs
into a new repo at actionlib_nodejs
. The main reason for doing so is to allow different JS client libraries (rclnodejs
, for example) to share a common actionlib backend rather than having to reimplement it on their own. There hasn't been any work there beyond pulling the ActionServer
and GoalHandle
classes into the repo. At some point active development on actions will hopefully move there, and how exactly client libraries and the separate actionlib
repo interact is still up in the air. So, yes, we are planning to finish implementing actions, though outside contributions would be very welcome.
While I'm on the subject of "other" repos, we also created a tf2_nodejs
repo a little while ago. Also still a work-in-progress. And would also benefit from outside help if anybody has time.
from rosnodejs.
Related Issues (20)
- xmlrpc lib crash ECONNRESET? HOT 6
- Can rosnodejs be used for mobile ROS applications? HOT 1
- Is it possible to receive message without deserialize? HOT 4
- UnhandledPromiseRejectionWarning: Error: ROS XMLRPC Error: no provider HOT 2
- How to registry a new msg. How to subscribe custom messages? I need help! HOT 3
- Incorrect timeout handling in _waitForActionServerToStart of ActionClientInterface
- How to import rosnodejs libraries using imort HOT 2
- Requesting non available gennodejs file HOT 4
- Create a melodic-devel branch and pull from my fork HOT 6
- Unknown client Subscriber error, from GlobalSpinner HOT 6
- Push latest version to npmjs HOT 1
- onTheFly error HOT 6
- _index.js items different from cmake add_message_files items HOT 2
- TypeError: Cannot read property 'msg' of undefined HOT 2
- How to check the numeric array types in the message received from ROS HOT 9
- Deal With Custom ROS Messages HOT 2
- Only the last message is published HOT 2
- Ros with Nodejs backend HOT 4
- rosnodejs.initNode is not a function HOT 3
- Vulnerabilities in current published v3.0.2 in NPM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rosnodejs.