nobleo / path_tracking_pid

Path Tracking PID offers a tuneable PID control loop, decouling steering and forward velocity
Apache License 2.0
130 stars 37 forks source link

Added to_transform() helper. #62

Closed lewie-donckers closed 2 years ago

lewie-donckers commented 2 years ago

Added to_transform() helper function to work around the output parameter of tf2::fromMsg().

IMO, shows how much easier functions with return values are to use over functions with output parameters.

Will also allow me to refactor one of the manual for loops later.

Timple commented 2 years ago

Actually, isn't is specified here already?

http://docs.ros.org/en/melodic/api/tf2/html/namespacetf2.html#a66edbda6fa9127178de05ca185603b18

Rayman commented 2 years ago

Actually, isn't is specified here already?

http://docs.ros.org/en/melodic/api/tf2/html/namespacetf2.html#a66edbda6fa9127178de05ca185603b18

I think that template doesn't have implementations for geometry_msgs::Pose because of the reason I listed, but I'm not sure. We could try it out

Timple commented 2 years ago

Aah, check!