ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Moveit plugin for rviz recognizes number as string

asked 2022-02-15 11:11:30 -0600

AndreyPr gravatar image

Hi. I'm trying to port moveit2 on ros2 galactic for my robot. I adapted config files, but got

[rviz2-1] [ERROR] [1644944218.537004679] [moveit_background_processing.background_processing]: Exception caught while processing action 'loadRobotModel': parameter 'torso_central_joint_group.kinematics_solver_timeout' has invalid type: Wrong parameter type, parameter {torso_central_joint_group.kinematics_solver_timeout} is of type {double}, setting it to {string} is not allowed.

kinematics.yaml is

torso_central_joint_group:
  kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin
  kinematics_solver_search_resolution: 0.5
  kinematics_solver_timeout: 0.5
neck_group:
  kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin
  kinematics_solver_search_resolution: 0.005
  kinematics_solver_timeout: 0.05
left_arm_group:
  kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin
  kinematics_solver_search_resolution: 0.005
  kinematics_solver_timeout: 0.05
right_arm_group:
  kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin
  kinematics_solver_search_resolution: 0.005
  kinematics_solver_timeout: 0.05

As we can see, its double, but not string. How to fix it? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-13 03:36:05 -0600

Hi,

in my case it was a matter of UTF problem. After setting in the .bashrc file:

export LC_NUMERIC=en_US.UTF-8

everything worked fine.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-02-15 11:11:30 -0600

Seen: 177 times

Last updated: Feb 15 '22