Skip to content

Commit

Permalink
fix(accel_brake_map_calibrator): rviz panel type (autowarefoundation#895
Browse files Browse the repository at this point in the history
)

* fixed panel type

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>

* modified instruction for rosbag replay case

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>

* modified update_map_dir service name

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
  • Loading branch information
soblin authored and ktro2828 committed Jun 7, 2022
1 parent e1421b8 commit e760187
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void AccelBrakeMapCalibratorButtonPanel::onInitialize()
&AccelBrakeMapCalibratorButtonPanel::callbackUpdateSuggest, this, std::placeholders::_1));

client_ = raw_node->create_client<tier4_vehicle_msgs::srv::UpdateAccelBrakeMap>(
"/vehicle/calibration/accel_brake_map_calibrator/update_map_dir");
"/accel_brake_map_calibrator/update_map_dir");
}

void AccelBrakeMapCalibratorButtonPanel::callbackUpdateSuggest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ros2 launch accel_brake_map_calibrator accel_brake_map_calibrator.launch.xml rvi
Or if you want to use rosbag files, run the following commands.

```sh
ros2 param set /use_sim_time true
ros2 launch accel_brake_map_calibrator accel_brake_map_calibrator.launch.xml rviz:=true use_sim_time:=true
ros2 bag play <rosbag_file> --clock
```

Expand Down Expand Up @@ -110,7 +110,7 @@ ros2 run accel_brake_map_calibrator view_statistics.py
You can save accel and brake map anytime with the following command.

```sh
ros2 service call /accel_brake_map_calibrator/update_map_dir "path: '<accel/brake map directory>'"
ros2 service call /accel_brake_map_calibrator/update_map_dir tier4_vehicle_msgs/srv/UpdateAccelBrakeMap "path: '<accel/brake map directory>'"
```

You can also save accel and brake map in the default directory where Autoware reads accel_map.csv/brake_map.csv using the RViz plugin (AccelBrakeMapCalibratorButtonPanel) as following.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Panels:
- /Current View1
Name: Views
Splitter Ratio: 0.5
- Class: autoware_localization_rviz_plugin/InitialPoseButtonPanel
- Class: tier4_localization_rviz_plugin/InitialPoseButtonPanel
Name: InitialPoseButtonPanel
- Class: autoware_localization_rviz_plugin/InitialPoseButtonPanel
- Class: tier4_localization_rviz_plugin/InitialPoseButtonPanel
Name: InitialPoseButtonPanel
Preferences:
PromptSaveOnExit: true
Expand Down

0 comments on commit e760187

Please sign in to comment.