Skip to content

Commit

Permalink
Small improvements (#146)
Browse files Browse the repository at this point in the history
* Add notes on frame conventions

* Add tf2_tools view_frames to .bash_history_init

* Add a separate .vscode for robot container

* Add ros_ws/install folder to intellisense

* Log if waiting for odom
  • Loading branch information
andrewjong authored Nov 14, 2024
1 parent 99df405 commit 867d864
Show file tree
Hide file tree
Showing 8 changed files with 1,202 additions and 252 deletions.
7 changes: 7 additions & 0 deletions docs/robot/static_transforms/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

## Frame Conventions

Each robot has its own **map** frame that represents the starting position of the robot.
The **map** frame is expected to be in ENU (East-North-Up) convention.

The robot is in the **base_link** frame.
3 changes: 2 additions & 1 deletion robot/docker/.dev/.bash_history_init
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ ros2 launch robot_bringup robot.launch.xml
cws
bws
sws
bws --packages-select robot_bringup
bws --packages-select robot_bringup
ros2 run tf2_tools view_frames
38 changes: 38 additions & 0 deletions robot/ros_ws/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"configurations": [
{
"browse": {
"databaseFilename": "${default}",
"limitSymbolsToIncludedHeaders": false
},
"includePath": [
"${workspaceFolder}/install/vdb_mapping_interfaces/include/**",
"${workspaceFolder}/install/trajectory_library/include/**",
"${workspaceFolder}/install/mavros_interface/include/**",
"${workspaceFolder}/install/robot_interface/include/**",
"${workspaceFolder}/install/px4_msgs/include/**",
"${workspaceFolder}/install/mav_system_msgs/include/**",
"${workspaceFolder}/install/mav_state_machine_msgs/include/**",
"${workspaceFolder}/install/mav_planning_msgs/include/**",
"${workspaceFolder}/install/mav_msgs/include/**",
"${workspaceFolder}/install/disparity_map_representation/include/**",
"${workspaceFolder}/install/map_representation_interface/include/**",
"${workspaceFolder}/install/disparity_graph/include/**",
"${workspaceFolder}/install/behavior_tree/include/**",
"${workspaceFolder}/install/behavior_tree_msgs/include/**",
"${workspaceFolder}/install/airstack_common/include/**",
"${workspaceFolder}/install/airstack_msgs/include/**",
"${workspaceFolder}/src/**",
"${workspaceFolder}/install/**",
"/opt/ros/humble/include/**",
"/usr/include/**"
],
"name": "ROS",
"intelliSenseMode": "gcc-x64",
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu11",
"cppStandard": "c++17"
}
],
"version": 4
}
13 changes: 13 additions & 0 deletions robot/ros_ws/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"recommendations": [
"ms-python.black-formatter",
"ms-iot.vscode-ros",
"ms-vscode-remote.remote-ssh",
"ms-python.python",
"ms-vscode-remote.remote-containers",
"redhat.vscode-xml",
"dotjoshjohnson.xml",
"ms-vscode.cmake-tools",
"cschlosser.doxdocgen"
]
}
12 changes: 12 additions & 0 deletions robot/ros_ws/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "ROS2: Launch robot.launch.xml",
"type": "ros",
"request": "launch",
// "preLaunchTask": "build ros_ws debug",
"target": "${workspaceFolder}/install/robot_bringup/share/robot_bringup/launch/robot.launch.xml",
}
]
}
847 changes: 847 additions & 0 deletions robot/ros_ws/.vscode/settings.json

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions robot/ros_ws/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build ros_ws debug",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}"
},
"command": [
"source /root/.bashrc &&",
"bws --cmake-args '-DCMAKE_BUILD_TYPE=Debug'"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "test ros_ws",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}"
},
"command": [
"source /opt/ros/humble/setup.bash;",
"source ${workspaceFolder}/install/setup.bash;",
"colcon test && colcon test-result"
],
}
]
}
Loading

0 comments on commit 867d864

Please sign in to comment.