gazebosim / gz-math

General purpose math library for robot applications.
https://gazebosim.org/libs/math
Apache License 2.0
54 stars 67 forks source link

Add command line tools for math #198

Open chapulina opened 3 years ago

chapulina commented 3 years ago

Desired behavior

Ignition math has a lot of handy APIs, but they can only be used by writing a C++ program. It would be nice to expose some of these as a handy command line tool. Some nice tools to offer:

Alternatives considered

GUI tools could also be handy. What I currently do for the use cases above is opening a website that does it for me, or opening a calculator, or doing it by hand...

Implementation suggestion

Use ign-tools, see an example on ign-transport.

Commands could look like this:

ign math --quaternion_to_euler "0 0 0 1"

NickNair commented 2 years ago

Is this issue closed?

scpeters commented 2 years ago
  • Convert euler angles 🔄 quaternions

Commands could look like this:

ign math --quaternion_to_euler "0 0 0 1"

we have examples for converting between Euler angles and quaternions:

we could use that as a reference when implementing this

chapulina commented 2 years ago

Why do I get this error when I run the ruby file in examples ?

@NickNair , please direct questions to http://answers.gazebosim.org. If you believe you found a bug, please ticket a new issue filling the template and explaining how to reproduce your problem.

sdhar04 commented 7 months ago

@chapulina I would like to work on this issue. Could you tell me which files I need to change in order to implement this?

ahcorde commented 7 months ago

@sdhar04 Probably you need to add some new files. Please check this comment which will give some ideas about to implement this in gz-math

Use ign-tools, see an example on ign-transport.

Commands could look like this:

ign math --quaternion_to_euler "0 0 0 1"