-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(perception): add autoware_planning_msgs dependencies to traffic l…
…ight nodes Signed-off-by: David Wong <david.wong@tier4.jp>
- Loading branch information
Showing
219 changed files
with
17,720 additions
and
1,811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
cmake_minimum_required(VERSION 3.14) | ||
project(tier4_automatic_goal_rviz_plugin) | ||
|
||
find_package(autoware_cmake REQUIRED) | ||
autoware_package() | ||
|
||
find_package(Qt5 REQUIRED Core Widgets) | ||
set(QT_LIBRARIES Qt5::Widgets) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
add_definitions(-DQT_NO_KEYWORDS) | ||
|
||
ament_auto_add_library(${PROJECT_NAME} SHARED | ||
src/automatic_goal_sender.cpp | ||
src/automatic_goal_append_tool.cpp | ||
src/automatic_goal_panel.cpp | ||
) | ||
|
||
ament_auto_add_executable(automatic_goal_sender | ||
src/automatic_goal_sender.cpp | ||
) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
${QT_LIBRARIES} | ||
) | ||
|
||
# Export the plugin to be imported by rviz2 | ||
pluginlib_export_plugin_description_file(rviz_common plugins/plugin_description.xml) | ||
|
||
ament_auto_package( | ||
INSTALL_TO_SHARE | ||
launch | ||
icons | ||
plugins | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# tier4_automatic_goal_rviz_plugin | ||
|
||
## Purpose | ||
|
||
1. Defining a `GoalsList` by adding goals using `RvizTool` (Pose on the map). | ||
|
||
2. Automatic execution of the created `GoalsList` from the selected goal - it can be stopped and restarted. | ||
|
||
3. Looping the current `GoalsList`. | ||
|
||
4. Saving achieved goals to a file. | ||
|
||
5. Plan the route to one (single) selected goal and starting that route - it can be stopped and restarted. | ||
|
||
6. Remove any goal from the list or clear the current route. | ||
|
||
7. Save the current `GoalsList` to a file and load the list from the file. | ||
|
||
8. The application enables/disables access to options depending on the current state. | ||
|
||
9. The saved `GoalsList` can be executed without using a plugin - using a node `automatic_goal_sender`. | ||
|
||
## Inputs / Outputs | ||
|
||
### Input | ||
|
||
| Name | Type | Description | | ||
| ---------------------------- | ------------------------------------------------- | ------------------------------------------------ | | ||
| `/api/operation_mode/state` | `autoware_adapi_v1_msgs::msg::OperationModeState` | The topic represents the state of operation mode | | ||
| `/api/routing/state` | `autoware_adapi_v1_msgs::msg::RouteState` | The topic represents the state of route | | ||
| `/rviz2/automatic_goal/goal` | `geometry_msgs::msgs::PoseStamped` | The topic for adding goals to GoalsList | | ||
|
||
### Output | ||
|
||
| Name | Type | Description | | ||
| ------------------------------------------ | -------------------------------------------------- | -------------------------------------------------- | | ||
| `/api/operation_mode/change_to_autonomous` | `autoware_adapi_v1_msgs::srv::ChangeOperationMode` | The service to change operation mode to autonomous | | ||
| `/api/operation_mode/change_to_stop` | `autoware_adapi_v1_msgs::srv::ChangeOperationMode` | The service to change operation mode to stop | | ||
| `/api/routing/set_route_points` | `autoware_adapi_v1_msgs::srv::SetRoutePoints` | The service to set route | | ||
| `/api/routing/clear_route` | `autoware_adapi_v1_msgs::srv::ClearRoute` | The service to clear route state | | ||
| `/rviz2/automatic_goal/markers` | `visualization_msgs::msg::MarkerArray` | The topic to visualize goals as rviz markers | | ||
|
||
## HowToUse | ||
|
||
1. Start rviz and select panels/Add new panel. | ||
|
||
![select_panel](./images/select_panels.png) | ||
|
||
2. Select `tier4_automatic_goal_rviz_plugin/AutowareAutomaticGoalPanel` and press OK. | ||
|
||
3. Select Add a new tool. | ||
|
||
![select_tool](./images/select_tool.png) | ||
|
||
4. Select `tier4_automatic_goal_rviz_plugin/AutowareAutomaticGoalTool` and press OK. | ||
|
||
5. Add goals visualization as markers to `Displays`. | ||
|
||
![markers](./images/markers.png) | ||
|
||
6. Append goals to the `GoalsList` to be achieved using `2D Append Goal` - in such a way that routes can be planned. | ||
|
||
7. Start sequential planning and goal achievement by clicking `Send goals automatically` | ||
|
||
![panel](./images/panel.png) | ||
|
||
8. You can save `GoalsList` by clicking `Save to file`. | ||
|
||
9. After saving, you can run the `GoalsList` without using a plugin also: | ||
- example: `ros2 launch tier4_automatic_goal_rviz_plugin automatic_goal_sender.launch.xml goals_list_file_path:="/tmp/goals_list.yaml" goals_achieved_dir_path:="/tmp/"` | ||
- `goals_list_file_path` - is the path to the saved `GoalsList` file to be loaded | ||
- `goals_achieved_dir_path` - is the path to the directory where the file `goals_achieved.log` will be created and the achieved goals will be written to it | ||
|
||
### Hints | ||
|
||
If the application (Engagement) goes into `ERROR` mode (usually returns to `EDITING` later), it means that one of the services returned a calling error (`code!=0`). | ||
In this situation, check the terminal output for more information. | ||
|
||
- Often it is enough to try again. | ||
- Sometimes a clearing of the current route is required before retrying. |
Binary file added
BIN
+18.4 KB
...n/tier4_automatic_goal_rviz_plugin/icons/classes/AutowareAutomaticGoalPanel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.4 KB
...on/tier4_automatic_goal_rviz_plugin/icons/classes/AutowareAutomaticGoalTool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions
10
common/tier4_automatic_goal_rviz_plugin/launch/automatic_goal_sender.launch.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<launch> | ||
<arg name="goals_list_file_path" description="" default=""/> | ||
<arg name="goals_achieved_dir_path" description="" default=""/> | ||
|
||
<node pkg="tier4_automatic_goal_rviz_plugin" exec="automatic_goal_sender" name="automatic_goal_sender" output="screen"> | ||
<param name="goals_list_file_path" value="$(var goals_list_file_path)"/> | ||
<param name="goals_achieved_dir_path" value="$(var goals_achieved_dir_path)"/> | ||
</node> | ||
</launch> |
Oops, something went wrong.