Coder Social home page Coder Social logo

Comments (14)

codebot avatar codebot commented on July 21, 2024

The link to the URDF file doesn't work for me; I think that link only works if you are logged in to your dropbox account. If you're in the Dropbox web interface and you right-click a filename, one of the options will be "Share..." and it will generate a link to allow public access to the file.

In general, this error from slam_gmapping is saying that (at least, according to its understanding of the URDF) the laser is not perfectly parallel to the ground. I'll have a look at your URDF file once I can see it.

from rosbook.

kishorekumar29 avatar kishorekumar29 commented on July 21, 2024

I have changed the link please check it.

from rosbook.

kishorekumar29 avatar kishorekumar29 commented on July 21, 2024

How to ensure that the laser scanner is parallel to the ground. Since laser scanner is added later to the assembly, how to fix it to the base_plate. How should be the above URDF edited to achieve it.

from rosbook.

codebot avatar codebot commented on July 21, 2024

In the <joint name="hokuyo_joint" type="fixed"> tag, try changing this:

<origin xyz="0 -0.04 0.2" rpy="1.5708 -1.5708 0>

to this:

<origin xyz="0 -0.04 0.2" rpy="0 0 0"/>

to ensure that the coordinate system of the laser is "Z-up". This may require some coordinate-swaps of your xyz attribute, but the orientation of the laser is the more important thing for the error reported by slam_gmapping.

from rosbook.

kishorekumar29 avatar kishorekumar29 commented on July 21, 2024

Yeah, i think the laser coordinates system is not Z-up as the result of above origin values results as below. The orientation of the laser is incorrect. How to swap coordinates of the laser or is there any other way to get around this?
gazebo1 1

from rosbook.

codebot avatar codebot commented on July 21, 2024

Hmm, I'm not quite sure what's going on, since I can't reproduce your situation without the STL files referenced from the URDF. I would suggest posting the URDF+STL files somewhere where it's easy to get them (ideally a github repo), and then posting this to ROS Answers, where there are many more people watching.

from rosbook.

gerkey avatar gerkey commented on July 21, 2024

If I understand correctly, this configuration had the wrong position for the laser, but successfully created a map:

 <origin xyz="0 -1 0.2" rpy="1.5708 -1.5708 0"/>

If so, then you've got the right orientation by the wrong position. Adjust the xyz values (but not the rpy values) to get the laser back on the robot. I would try xyz="0 -0.04 0.2" first.

from rosbook.

kishorekumar29 avatar kishorekumar29 commented on July 21, 2024

@codebot I have posted the STL files of the links along with the urdf over here https://www.dropbox.com/sh/sb03bz7hopntwqh/AAD2oWLLRmZAgTS91YJ_PfzOa?dl=0. I have posted issue in ROS forum.

from rosbook.

kishorekumar29 avatar kishorekumar29 commented on July 21, 2024

@gerkey, Yeah i am able to create map successfully with y value as "-1", but when i try to build map after bringing back laser to robot by y value "-0.04" the error occurs.

from rosbook.

kishorekumar29 avatar kishorekumar29 commented on July 21, 2024

Does this error got anything to do with slam_gmapping node?

from rosbook.

kishorekumar29 avatar kishorekumar29 commented on July 21, 2024

@codebot were you able to rebuild the model and locate the issue, please let me know in case of additional detail requirement.

from rosbook.

kishorekumar29 avatar kishorekumar29 commented on July 21, 2024

Modifying the the URDF to right hand coordinate system fixed the issue.

from rosbook.

codebot avatar codebot commented on July 21, 2024

Just for completeness, in case anyone else finds this ticket later: what
did you do to fix your problem? How did you change your coordinate system?
I would be interested in knowing how we can detect the problem you were
seeing, and generate a warning message on the console with a suggestion of
how to fix it.
On Feb 4, 2016 6:41 AM, "kishorekumar29" [email protected] wrote:

Modifying the the URDF to right hand coordinate system fixed the issue.


Reply to this email directly or view it on GitHub
#6 (comment).

from rosbook.

kishorekumar29 avatar kishorekumar29 commented on July 21, 2024

I zeroed on the issue by altering the joint values of my laser sensor, when i iterated my Z values the laser moved in sideways but it is intended to move up and down.
Since my robot model was exported from solidworks i re-exported my model through solidworks2urdf after correcting my coordinates in solidworks, which fixed the issue. If we build the URDF from scratch the coordinate issue is will be in rare case.

from rosbook.

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.