robot_state_publisher icon indicating copy to clipboard operation
robot_state_publisher copied to clipboard

added repitition to robot_description reading

Open VahidAminZ opened this issue 8 years ago • 10 comments

fixes #52

VahidAminZ avatar Jun 01 '16 10:06 VahidAminZ

I think that the best implementation of this feature would be to add description_read_repetitions and description_read_delay as ROS parameters with default values if the parameters are not set on the server.

jacquelinekay avatar Jun 01 '16 17:06 jacquelinekay

@jacquelinekay Makes sense. I changed it accordingly. I am not sure about default values though.

VahidAminZ avatar Jun 02 '16 10:06 VahidAminZ

I would consider making the default value for default_descriptions_read_repetitions 0. That way users can opt into the new behavior.

@ros/ros_team and @ros/robot_model, do you have any feedback on this new workaround for nondeterministic startup behavior?

jacquelinekay avatar Jun 08 '16 16:06 jacquelinekay

@jacquelinekay changed the default repetitions to 0.

VahidAminZ avatar Jul 01 '16 11:07 VahidAminZ

Hi @jacquelinekay just checking if this PR can be merged or there is some fundamental disagreement on the content.

If it's going to be merged we can resolve the conflicts.

toliver avatar Dec 09 '16 15:12 toliver

This has been rebased and the checks are passing. Do you think it can be merged?

toliver avatar Feb 07 '17 16:02 toliver

Hi @toliver, thanks for the contribution. If I understand correctly this enables robot_state_publisher to wait for the parameter "robot_description" to be set for a fixed amount of time.

Would you mind adding a test to make sure it does not wait by default, and a test to make sure it can wait when the two parameters are set?

sloretz avatar Feb 08 '17 20:02 sloretz

@clalancette Thoughts?

sloretz avatar Feb 08 '17 20:02 sloretz

Sorry to nose in, are there plans to move ahead with this pull request? It would be useful for my application as well. I can help with the requested changes if need be.

sgillen avatar Apr 03 '17 17:04 sgillen

I'm wondering if there is a nicer way to do this ,rather than just polling for a set amount of time. That is, it seems to me like it might be better for robot_state_publisher to have a configurable topic that would get published to once the robot description is available. That way, it would just wait around until that event happened, rather than polling the parameter server. Thoughts about an approach like that?

clalancette avatar May 16 '17 15:05 clalancette