Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed quaternion default value issue. Added Test #115

Conversation

asisbot
Copy link

@asisbot asisbot commented Oct 2, 2014

No description provided.

@megawac
Copy link
Contributor

megawac commented Oct 2, 2014

@@ -17,7 +17,7 @@ function Quaternion(options) {
this.x = options.x || 0;
this.y = options.y || 0;
this.z = options.z || 0;
this.w = options.w || 1;
this.w = (typeof options.w === "number") ? options.w : 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes are used in all of the ros JS code which will also cause the build to fail :)

@asisbot
Copy link
Author

asisbot commented Oct 3, 2014

When I ran test/examples/tf.example.js using setup_examples.sh and karma start, all tests in tf.example.js were successful.

Do you mean fix tf.example.js#L18 or add new tests to tf.example.js ?

@megawac
Copy link
Contributor

megawac commented Oct 3, 2014

https://travis-ci.org/RobotWebTools/roslibjs/builds/36987963#L1441

To run tests

cd /path/to/roslib
sh test/examples/setup_examples.sh
npm run test-examples

@T045T
Copy link
Contributor

T045T commented Oct 4, 2014

That failure is because the turtle_tf_broadcaster nodes crashed, probably because of a bad lookup.
They should publish a quaternion with w = 1, {w : 0, x : 0, y : 0, z : 0} is an invalid quaternion anyway.

@T045T T045T mentioned this pull request Oct 4, 2014
@rctoris
Copy link
Contributor

rctoris commented Oct 6, 2014

Re-triggered after some build fixes were added. Travis output now shows the test that fails with the new default values: https://travis-ci.org/RobotWebTools/roslibjs/builds/36987963#L1437

@asisbot
Copy link
Author

asisbot commented Oct 7, 2014

I found a problem with .travis.yml. According to the .travis.yml file, ros-hydro-geometry-tutorials is not installed into the travis environment. It means turtle_tf package roslaunched from setup_examples.sh is not installed, either. So, no tf between /world and /turtle1 is published by setup_examples.sh in travis. I could reproduce the same error in my environment by following the steps defined in the .travis.yml. Then, after I apt-get installed ros-hydro-geometry-tutorials, I confirmed that all tests succeeded. (However, fibonacci tests were very unstable as issued #114.)

The pull request #119 replaces "roslaunch turtle_tf turtle_tf_demo" with static_transform_publisher. So, after this pull request is merged, all tests will become successful.

@T045T
Copy link
Contributor

T045T commented Oct 7, 2014

Good catch! Right now, the build seems to be broken because the current rosbridge package doesn't work right. As soon as the new version has propagated to the package sources, we should finally be able to get this to pass and merge it :)

T045T added a commit that referenced this pull request Oct 9, 2014
…alue-issue

Fixed quaternion default value issue. Added Test
@T045T T045T merged commit 3316713 into RobotWebTools:develop Oct 9, 2014
k-aguete pushed a commit to k-aguete/roslibjs that referenced this pull request Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants