neobotix / neo_docking2

ROS2 package for neo_docking
2 stars 1 forks source link

Wrong "dock_pose" written by service "/store_pose" #43

Closed mataruzz closed 9 months ago

mataruzz commented 9 months ago

Hello, I'm using the service /store_pose to save the dock_pose in the yaml file.

The problem arise when I try to read from the generated .yaml file, getting:

[neo_docking2-1] [ERROR] [1706703526.422064830] [rcl]: Failed to parse global arguments
[neo_docking2-1] terminate called after throwing an instance of 'rclcpp::exceptions::RCLInvalidROSArgsError'

The generated pose is:

/**:   ros__parameters:    pose:     - 0.10706242392461893     - -0.0038945182486458483     - 0   orientation:     - 0.71226661104108513     - 0     - 0     - -0.70190902173718184    laser_ref: 4.7199997901916504

The error here, is how storing the 0 value. It expects a double and get an int, leading to an error. Changing by hand 0 to 0.0, the parameters are properly read.

padhupradheep commented 9 months ago

Thanks for the report #14 addresses it already.