Skip to content

Commit

Permalink
fix code style and setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBearing committed Feb 4, 2024
1 parent b93bdf5 commit e8e3cfe
Show file tree
Hide file tree
Showing 8 changed files with 2,504 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: ci_humble
on:
push:
branches:
- "humble"
- "main"
pull_request:
types: [opened, synchronize, labeled]

jobs:
ci:
runs-on: ${{ matrix.os }}
if: |
((github.event.action == 'labeled') && (github.event.label.name == 'TESTING') && (github.base_ref == 'humble' )) ||
((github.event.action == 'synchronize') && (github.base_ref == 'humble') && contains(github.event.pull_request.labels.*.name, 'TESTING')) ||
(github.ref_name == 'humble')
((github.event.action == 'labeled') && (github.event.label.name == 'TESTING') && (github.base_ref == 'main' )) ||
((github.event.action == 'synchronize') && (github.base_ref == 'main') && contains(github.event.pull_request.labels.*.name, 'TESTING')) ||
(github.ref_name == 'main')
container:
image: osrf/ros:${{ matrix.ros_distribution }}-desktop
timeout-minutes: 20
Expand All @@ -23,16 +23,17 @@ jobs:
os: [ubuntu-22.04]
ros_distribution: [humble]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y wget python3-vcstool python3-colcon-coveragepy-result
- uses: actions/checkout@v3
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.ros_distribution }}
- name: Build and Test
uses: ros-tooling/action-ros-ci@v0.2
uses: ros-tooling/action-ros-ci@v0.3
with:
target-ros2-distro: ${{ matrix.ros_distribution }}
import-token: ${{ secrets.GITHUB_TOKEN }}
package-name: |
chatgpt_ros_cpp
chatgpt_ros_cpp_node
chatgpt_ros_cpp_msgs
chatgpt_ros_cpp_bringup
chatgpt_ros_cpp_bringup
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*/COLCON_IGNORE
*/browse.vc.db
*browse.vc.db-shm
*browse.vc.db-wal
12 changes: 7 additions & 5 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@
"configurations": [
{
"browse": {
"databaseFilename": "${default}",
"databaseFilename": "${workspaceFolder}/.vscode/browse.vc.db",
"limitSymbolsToIncludedHeaders": false
},
"includePath": [
"/usr/include/**",
"/opt/ros/humble/include/**",
"~/ws_humble/src/chatgpt_ros_cpp/chatgpt_ros_cpp/include/**",
"/usr/include/**"
"/opt/ros/humble/src/gmock_vendor/include/**",
"${workspaceFolder}/chatgpt_ros_cpp_node/include/**",
"${workspaceFolder}/chatgpt_ros_cpp_node/src/**"
],
"name": "ROS",
"intelliSenseMode": "gcc-x64",
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu11",
"cppStandard": "c++14"
"cStandard": "c99",
"cppStandard": "c++17"
}
],
"version": 4
Expand Down
30 changes: 30 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": "0.2",
"language": "en",
"words": [
"backdrive",
"bringup",
"colcon",
"coveragepy",
"discnt",
"dobot",
"dpad",
"eigen",
"geochelone",
"m12watanabe1a",
"mkdir",
"modbus",
"movj",
"movl",
"nlohmann",
"Okamoto",
"pluginlib",
"rclcpp",
"rviz",
"Takumi",
"urdf",
"vcstool",
"waitables",
"xacro"
]
}
121 changes: 102 additions & 19 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,104 @@
{
"python.autoComplete.extraPaths": [
"/opt/ros/humble/lib/python3.10/site-packages",
"/opt/ros/humble/local/lib/python3.10/dist-packages"
],
"python.analysis.extraPaths": [
"/opt/ros/humble/lib/python3.10/site-packages",
"/opt/ros/humble/local/lib/python3.10/dist-packages"
],
"files.associations": {
"array": "cpp",
"*.tcc": "cpp",
"memory": "cpp",
"future": "cpp",
"istream": "cpp",
"functional": "cpp",
"tuple": "cpp",
"utility": "cpp",
"variant": "cpp"
}
"python.autoComplete.extraPaths": [
"/opt/ros/humble/lib/python3.10/site-packages",
],
"python.analysis.extraPaths": [
"/opt/ros/humble/lib/python3.10/site-packages"
],
"[jsonc]": {
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
"[cpp]": {
"editor.tabSize": 2,
"editor.defaultFormatter": "zachflower.uncrustify"
},
"[xml]": {
"editor.tabSize": 2,
"files.trimFinalNewlines": true,
"editor.defaultFormatter": "redhat.vscode-xml",
},
"uncrustify.configPath.linux": ".vscode/uncrustify.cfg",
"xml.format.splitAttributes": true,
"files.associations": {
".repos": "yaml",
"/usr/include/c++**": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"any": "cpp",
"array": "cpp",
"atomic": "cpp",
"strstream": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"chrono": "cpp",
"cinttypes": "cpp",
"codecvt": "cpp",
"compare": "cpp",
"complex": "cpp",
"concepts": "cpp",
"condition_variable": "cpp",
"cstdint": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"ratio": "cpp",
"regex": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"future": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"numbers": "cpp",
"ostream": "cpp",
"semaphore": "cpp",
"shared_mutex": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"stop_token": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"cfenv": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"valarray": "cpp",
"variant": "cpp",
"*.dat": "cpp"
},
}
Loading

0 comments on commit e8e3cfe

Please sign in to comment.