Formula-Student-Driverless-Simulator icon indicating copy to clipboard operation
Formula-Student-Driverless-Simulator copied to clipboard

Implemented a SetLocalPosition Service

Open MarvinKlemp opened this issue 4 years ago • 7 comments

MarvinKlemp avatar Jan 04 '21 21:01 MarvinKlemp

Looks like I didn't use the latest version locally. I'll fix merge conflicts later

MarvinKlemp avatar Jan 04 '21 21:01 MarvinKlemp

This looks great! Only thing left to do is add some documentation. After you resolve the conflicts I will test it :rocket:

SijmenHuizenga avatar Jan 04 '21 22:01 SijmenHuizenga

Should all services be moved to fsds_msgs?

as Reset.srv was moved while the SetGPSPosition.srv and SetLocalPosition.srv definitions are still in fsds_ros_bridge

MarvinKlemp avatar Jan 14 '21 15:01 MarvinKlemp

Should all services be moved to fsds_msgs?

Yes! I think that would be the right way forward.

SijmenHuizenga avatar Jan 17 '21 19:01 SijmenHuizenga

Tested it, works great!

I added a commit that removes the vehicle_name from SetLocalPosition.srv as FSDS only supports a single vehicle anyway. I also added the service file to the CMakeLists.txt because without it compilation failed.

Last thing to do is add a note in the docs. Let's also mention explicitly that setting the local position does not reset the velocity and also does not reset the command_controll.

SijmenHuizenga avatar Jan 17 '21 21:01 SijmenHuizenga

Sorry, I didn't really have a lot of time in the past days.

Should all services be moved to fsds_msgs?

Yes! I think that would be the right way forward.

Do you want this to be done in this PR? Or in another PR after this one.

MarvinKlemp avatar Feb 08 '21 08:02 MarvinKlemp

@MarvinKlemp We can do it in a separate pr :smile:

After you add some docs I we can merge :rocket:

SijmenHuizenga avatar Feb 08 '21 17:02 SijmenHuizenga