Skip to content

Commit

Permalink
Ros2 v0.8.0 raw vehicle cmd converter (autowarefoundation#268)
Browse files Browse the repository at this point in the history
* restore raw_vehicle_cmd_converter files for 0.8.0 update

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* fix typos in vehicle modules (autowarefoundation#954)

* add get func (autowarefoundation#1088)

* Revert "restore raw_vehicle_cmd_converter files for 0.8.0 update"

This reverts commit f243f26e20490757a332566aa92196553a682aa6.

Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>
Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp>
  • Loading branch information
3 people authored and wep21 committed Jan 30, 2021
1 parent 29569c3 commit cd46027
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class AccelMap
bool readAccelMapFromCSV(std::string csv_path);
bool getThrottle(double acc, double vel, double & throttle);
bool getAcceleration(double throttle, double vel, double & acc);
std::vector<double> getVelIdx() { return vel_index_; };
std::vector<double> getThrottleIdx() { return throttle_index_; };
std::vector<std::vector<double>> getAccelMap() { return accel_map_; };

private:
rclcpp::Logger logger_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ class BrakeMap

bool readBrakeMapFromCSV(std::string csv_path);
bool getBrake(double acc, double vel, double & brake);
bool getAcceleration(double throttle, double vel, double & acc);
bool getAcceleration(double brake, double vel, double & acc);
std::vector<double> getVelIdx() { return vel_index_; };
std::vector<double> getBrakeIdx() { return brake_index_; };
std::vector<std::vector<double>> getBrakeMap() { return brake_map_; };

private:
rclcpp::Logger logger_;
Expand Down

0 comments on commit cd46027

Please sign in to comment.