Ask Your Question
0

rviz ignores origin if it has decimal values

asked 2017-12-24 14:23:50 -0600

javieralso gravatar image

Hello,

I'm trying to modeling my first robot using URDF. The problem that I have is that when I visualize it with rviz, I can see that the joint's origins are ignored if they contains decimal points (for instance, something like "origin xyz="0 0 -0.08""). If, however, I use a comma to write decimal values on the origins (such as "origin xyz="0 0 -0.08""), everything works well.

This wouldn't be a problem if xacro didn't complain when I try to use math operations with comma decimals. So it is not clear to me if this is a bug on xacro, on rviz or if I am doing something wrong.

Anyone would have a clue of what can be happening?

For your reference, I am using ROS Lunar.

Thank you very much in advance.

Regards

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-12-24 15:59:57 -0600

David Lu gravatar image

This sounds like an internationalization problem. If you open a Python console, and type float('0.08') and float('0,08') I imagine the latter will work.

edit flag offensive delete link more

Comments

Thanks David!!

You were right, I just messed up with my locale configuration. As soon as I fixed it, it worked :D

Thanks!!

Javier

javieralso gravatar imagejavieralso ( 2017-12-26 14:57:19 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-12-24 14:23:50 -0600

Seen: 94 times

Last updated: Dec 24 '17