Comments (9)
Should we kill the fib test given that all of are PR are now failing?
from roslibjs.
Another option would be to set up retries -- anyway, watching the data in the websocket, its not at this that this is failing
{"topic": "/fibonacci/status", "msg": {"header": {"stamp": {"secs": 1412346145, "nsecs": 100562626}, "frame_id": "", "seq": 802}, "status_list": [{"status": 3, "text": "", "goal_id": {"stamp": {"secs": 1412346130, "nsecs": 416565477}, "id": "goal_0.21390089532360435_1412346130341"}}, {"status": 1, "text": "This goal has been accepted by the simple action server", "goal_id": {"stamp": {"secs": 1412346145, "nsecs": 86608049}, "id": "goal_0.6893968519289047_1412346145035"}}]}, "op": "publish"}
{"topic": "/fibonacci/status", "msg": {"header": {"stamp": {"secs": 1412346145, "nsecs": 300727733}, "frame_id": "", "seq": 803}, "status_list": [{"status": 3, "text": "", "goal_id": {"stamp": {"secs": 1412346130, "nsecs": 416565477}, "id": "goal_0.21390089532360435_1412346130341"}}, {"status": 1, "text": "This goal has been accepted by the simple action server", "goal_id": {"stamp": {"secs": 1412346145, "nsecs": 86608049}, "id": "goal_0.6893968519289047_1412346145035"}}]}, "op": "publish"}
{"topic": "/fibonacci/status", "msg": {"header": {"stamp": {"secs": 1412346145, "nsecs": 500904001}, "frame_id": "", "seq": 804}, "status_list": [{"status": 3, "text": "", "goal_id": {"stamp": {"secs": 1412346130, "nsecs": 416565477}, "id": "goal_0.21390089532360435_1412346130341"}}, {"status": 1, "text": "This goal has been accepted by the simple action server", "goal_id": {"stamp": {"secs": 1412346145, "nsecs": 86608049}, "id": "goal_0.6893968519289047_1412346145035"}}]}, "op": "publish"}
{"topic": "/fibonacci/status", "msg": {"header": {"stamp": {"secs": 1412346145, "nsecs": 701073095}, "frame_id": "", "seq": 805}, "status_list": [{"status": 3, "text": "", "goal_id": {"stamp": {"secs": 1412346130, "nsecs": 416565477}, "id": "goal_0.21390089532360435_1412346130341"}}, {"status": 1, "text": "This goal has been accepted by the simple action server", "goal_id": {"stamp": {"secs": 1412346145, "nsecs": 86608049}, "id": "goal_0.6893968519289047_1412346145035"}}]}, "op": "publish"}
{"topic": "/fibonacci/status", "msg": {"header": {"stamp": {"secs": 1412346145, "nsecs": 900314644}, "frame_id": "", "seq": 806}, "status_list": [{"status": 3, "text": "", "goal_id": {"stamp": {"secs": 1412346130, "nsecs": 416565477}, "id": "goal_0.21390089532360435_1412346130341"}}, {"status": 1, "text": "This goal has been accepted by the simple action server", "goal_id": {"stamp": {"secs": 1412346145, "nsecs": 86608049}, "id": "goal_0.6893968519289047_1412346145035"}}]}, "op": "publish"}
{"topic": "/fibonacci/feedback", "msg": {"status": {"status": 1, "text": "This goal has been accepted by the simple action server", "goal_id": {"stamp": {"secs": 1412346145, "nsecs": 86608049}, "id": "goal_0.6893968519289047_1412346145035"}}, "header": {"stamp": {"secs": 1412346146, "nsecs": 86700196}, "frame_id": "", "seq": 29}, "feedback": {"sequence": [0, 1, 1, 2]}}, "op": "publish"}
Looks like a bug in either bridge
or that tutorial example as the websocket never receives "feedback": {"sequence": [0, 1, 1]}
from roslibjs.
It looks like the ROS nodes started by setup_examples.sh
aren't 100% reliable themselves.
This build failed with ECONNREFUSED
, and I encountered the same on my machine (hydro on Precise). Re-running setup_examples.sh
fixed it, including all the tf and quaternion tests.
I think it's a good idea to exclude these tests from the Travis build for the time being.
from roslibjs.
I suppose the other option is to configure it to use rostest proper like
instead of that dirty shell script. Could also build rosbridge from source
(in travis) to fix #111
On Fri, Oct 3, 2014 at 10:52 AM, Nils Berg [email protected] wrote:
It looks like the ROS nodes started by setup_examples.sh aren't 100%
reliable themselves.This build https://travis-ci.org/RobotWebTools/roslibjs/builds/36919524
failed with ECONNREFUSED, and I encountered the same on my machine (hydro
on Precise). Re-running setup_examples.sh fixed it, including all the tf
and quaternion tests.I think it's a good idea to exclude these tests from the Travis build for
the time being.—
Reply to this email directly or view it on GitHub
#114 (comment)
.
from roslibjs.
Well, we could replace the shell script with a roslaunch file, but I'm not sure rostest is really what we want. Looks like it's for testing roscpp/rospy nodes.
By the way, where did you record the raw websocket data? On my machine, all the tests pass (most the time), but I'd like to reproduce that bug and look at rosbridge to figure out why part of the feedback never makes it to roslibjs.
from roslibjs.
/I relaunched the test until it failed (mocha fibonacci.example.js) and
then dumped everything that went through that socket. The alternative would
be to just add a console.log statement in the onmessage listener
for core/Ros.js
On Fri, Oct 3, 2014 at 11:44 AM, Nils Berg [email protected] wrote:
Well, we could replace the shell script with a roslaunch file, but I'm not
sure rostest is really what we want. Looks like it's for testing
roscpp/rospy nodes.By the way, where did you record the raw websocket data? On my machine,
all the tests pass (most the time), but I'd like to reproduce that bug and
look at rosbridge to figure out why part of the feedback never makes it to
roslibjs.—
Reply to this email directly or view it on GitHub
#114 (comment)
.
from roslibjs.
I believe the problem with the fibonacci test is that rosbridge doesn't subscribe to the feedback topic in time to catch the first feedback message.
Interestingly, the subscription is logged in the ROS master.log
as occurring about 30ms before the first feedback message, but that doesn't seem to be enough for rospy to get its ducks in a row. In the cases where the test passes, the time difference between subscription and first feedback message is closer to 150ms.
Changing
goal.send();
to
setTimeout(function(){
goal.send();
}, 100);
in the test evidently makes the failures disappear, at least on my testing setup. It's been running in a loop for the past half hour, with no failures.
from roslibjs.
Are these still failing for people?
from roslibjs.
Closing for inactivity / better stability noticed in travis builds
from roslibjs.
Related Issues (20)
- How to use the Move Group Interface with roslibjs (RobotWebTools)? HOT 7
- Unable to access http://robotwebtools.org HOT 3
- CommState for Action Client
- Correct CDN to use HOT 3
- What to do about ROS 2 support? HOT 13
- Increase general library quality HOT 3
- What to do with socket.io? HOT 2
- high speed CAN bus data missing messages
- V2 releases HOT 14
- Visualisation of PointCloud2/TF2 in browser with ROS2 HOT 1
- Develop branch doesn't work with npm - React HOT 3
- Ros2 Action Client does not let me send any more data to rosbridge after sending goal HOT 1
- ROS2 cancel action_server goal HOT 3
- warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. HOT 3
- Subscription for PointCloud2 is not working HOT 3
- Add ROS 2 integration tests HOT 4
- ROS2 JointStatePublisher in the Browser
- Node.js: ReferenceError: WebSocket is not defined HOT 1
- Develop does not build without lock-file HOT 3
- Ros2 Actions are not working for me with ROSLIBJS (app crashed) HOT 4
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 roslibjs.