Coder Social home page Coder Social logo

Comments (12)

JaehyunShim avatar JaehyunShim commented on September 28, 2024

@BenArtes

Does this really work in the Gazebo simulation? It works with the mimic tag on Rviz but it doesn't on Gazebo for me.

Ryan

from urdfdom.

saikishor avatar saikishor commented on September 28, 2024

Yes it would be awesome to have mimic joins that support non-linear relationship, in most of the applications, it is nonlinear.
👍 for this feature

from urdfdom.

BenArtes avatar BenArtes commented on September 28, 2024

@BenArtes

Does this really work in the Gazebo simulation? It works with the mimic tag on Rviz but it doesn't on Gazebo for me.

Ryan

https://github.com/roboticsgroup/roboticsgroup_gazebo_plugins

This repo has a gazebo plugin that you can use for mimic joints in gazebo. I had commented on this issue to see if I can get it merged into gazebo_ros_pkgs; no response.

from urdfdom.

Prologue-Z avatar Prologue-Z commented on September 28, 2024

May I ask if URDF has realized this function?

from urdfdom.

torydebra avatar torydebra commented on September 28, 2024

May I ask if URDF has realized this function?

If you really need it, I had done something to add parsing non linear functions with numexpr in the joint_state_publisher, https://github.com/torydebra/joint_state_publisher/tree/kinetic-devel-rosee

where you can add non linear relationship like:

    <mimic joint="motor_thumb" nlFunPos="0.3378*x^4 + -1.179*x^3 + 1.103*x^2 + 0.7363*x + 0.01468"/>

from urdfdom.

Prologue-Z avatar Prologue-Z commented on September 28, 2024

May I ask if URDF has realized this function?

If you really need it, I had done something to add parsing non linear functions with numexpr in the joint_state_publisher, https://github.com/torydebra/joint_state_publisher/tree/kinetic-devel-rosee

where you can add non linear relationship like:

    <mimic joint="motor_thumb" nlFunPos="0.3378*x^4 + -1.179*x^3 + 1.103*x^2 + 0.7363*x + 0.01468"/>

Thank you very much. This has been very useful for my work.

Also, I would like to ask if using your modified JointStatePublisher can adapt to MoveIt Setup Assistant.Or it can only be used in the GUI demo.

from urdfdom.

torydebra avatar torydebra commented on September 28, 2024

Sorry but I do not know if moveit setup assistant use the joint state publisher and how, by the way the addition I made is just a simple parsing and probably can be added anywhere (torydebra/joint_state_publisher@9767eab)

Just come in my mind that I also had forked the roboticsgroup_gazebo_plugins linked above to accept these non linear relationship as well:
https://github.com/torydebra/roboticsgroup_gazebo_plugins/tree/devel-rosee

from urdfdom.

saikishor avatar saikishor commented on September 28, 2024

I believe it might work, because MoveIt uses the topic /joint_states to update the state of the robot. As this is solved by @torydebra's joint state publisher, I think it should be fine.

from urdfdom.

Prologue-Z avatar Prologue-Z commented on September 28, 2024

Sorry but I do not know if moveit setup assistant use the joint state publisher and how, by the way the addition I made is just a simple parsing and probably can be added anywhere (torydebra/joint_state_publisher@9767eab)

Just come in my mind that I also had forked the roboticsgroup_gazebo_plugins linked above to accept these non linear relationship as well: https://github.com/torydebra/roboticsgroup_gazebo_plugins/tree/devel-rosee

Well, if it can be used in gazebo, moveit should also be adapted. Thank you very much for your solution.

from urdfdom.

Prologue-Z avatar Prologue-Z commented on September 28, 2024

I believe it might work, because MoveIt uses the topic /joint_states to update the state of the robot. As this is solved by @torydebra's joint state publisher, I think it should be fine.

Updating the robot state is certainly possible, and this is already implemented in the repository of @torydebra .
My question is whether it isadapted by other plugins of moveit, such as kinematics solvers, motion planning, etc. Does the plugins take into account the added non-linear relationships.

from urdfdom.

saikishor avatar saikishor commented on September 28, 2024

My question is whether it isadapted by other plugins of moveit, such as kinematics solvers, motion planning, etc. Does the plugins take into account the added non-linear relationships.

There are more limitations in that area. May be it's not possible if you have closed linkages.On the other hand, It is certainly possible to set passive joints in the MoveIt configuration. Try it out. Moreover, the MoveIt specific thing has nothing to do with the changes in this repository. In case it doesn't work, open an issue in MoveIt repository.

Good luck ☺️

from urdfdom.

Prologue-Z avatar Prologue-Z commented on September 28, 2024

My question is whether it isadapted by other plugins of moveit, such as kinematics solvers, motion planning, etc. Does the plugins take into account the added non-linear relationships.

There are more limitations in that area. May be it's not possible if you have closed linkages.On the other hand, It is certainly possible to set passive joints in the MoveIt configuration. Try it out. Moreover, the MoveIt specific thing has nothing to do with the changes in this repository. In case it doesn't work, open an issue in MoveIt repository.

Good luck ☺️

Thank you for your reply. I will give it a try.
This does not seem to be an easy task, as multiple plugins in the moveit need to be modified.

Also I'll do some more investigation into other tech routes, maybe moveit isn't the best fit for me. 🤣

from urdfdom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.