text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: ros2pkg/ros2pkg/api/__init__.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/api/__init__.py", "license": "apache-2.0", "size": 1966}
### File: ros2pkg/ros2pkg/api/create.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/api/create.py", "license": "apache-2.0", "size": 10143}
### File: ros2pkg/ros2pkg/command/pkg.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/command/pkg.py", "license": "apache-2.0", "size": 1326}
### File: ros2pkg/ros2pkg/resource/ament_cmake/CMakeLists.txt.em cmake_minimum_required(VERSION 3.8) project(@(project_name)) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() # find dependencies find_package(ament_cmake REQUIRED) @[if cpp_li...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/ament_cmake/CMakeLists.txt.em", "license": "apache-2.0", "size": 2995}
### File: ros2pkg/ros2pkg/resource/ament_python/main.py.em def main(): print('Hi from @project_name.') if __name__ == '__main__': main()
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/ament_python/main.py.em", "license": "apache-2.0", "size": 88}
### File: ros2pkg/ros2pkg/resource/ament_python/setup.cfg.em [develop] script_dir=$base/lib/@(project_name) [install] install_scripts=$base/lib/@(project_name)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/ament_python/setup.cfg.em", "license": "apache-2.0", "size": 99}
### File: ros2pkg/ros2pkg/resource/ament_python/setup.py.em from setuptools import find_packages, setup package_name = '@project_name' setup( name=package_name, version='0.0.0', packages=find_packages(exclude=['test']), data_files=[ ('share/ament_index/resource_index/packages', ['r...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/ament_python/setup.py.em", "license": "apache-2.0", "size": 735}
### File: ros2pkg/ros2pkg/resource/ament_python/test_copyright.py.em # Copyright 2015 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/ament_python/test_copyright.py.em", "license": "apache-2.0", "size": 965}
### File: ros2pkg/ros2pkg/resource/ament_python/test_flake8.py.em # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/ament_python/test_flake8.py.em", "license": "apache-2.0", "size": 886}
### File: ros2pkg/ros2pkg/resource/ament_python/test_pep257.py.em # Copyright 2015 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/ament_python/test_pep257.py.em", "license": "apache-2.0", "size": 805}
### File: ros2pkg/ros2pkg/resource/cmake/CMakeLists.txt.em cmake_minimum_required(VERSION 3.8) project(@(project_name)) set(@(project_name)_MAJOR_VERSION 0) set(@(project_name)_MINOR_VERSION 0) set(@(project_name)_PATCH_VERSION 0) set(@(project_name)_VERSION ${@(project_name)_MAJOR_VERSION}.${@(project_name)_MINOR_V...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/cmake/CMakeLists.txt.em", "license": "apache-2.0", "size": 3736}
### File: ros2pkg/ros2pkg/resource/cmake/Config.cmake.in.em # - Config file for the @(project_name) package # It defines the following variables # @(project_name)_INCLUDE_DIRS - include directories for FooBar # @(project_name)_LIBRARIES - libraries to link against # @(project_name)_EXECUTABLE - the bar executab...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/cmake/Config.cmake.in.em", "license": "apache-2.0", "size": 692}
### File: ros2pkg/ros2pkg/resource/cmake/ConfigVersion.cmake.in.em set(PACKAGE_VERSION "@@@(project_name)_VERSION@@") # Check whether the requested PACKAGE_FIND_VERSION is compatible if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") set(PACKAGE_VERSION_COMPATIBLE FALSE) else() set(PACKAGE_VERSION_COM...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/cmake/ConfigVersion.cmake.in.em", "license": "apache-2.0", "size": 389}
### File: ros2pkg/ros2pkg/resource/cpp/header.hpp.em #ifndef @(package_name.upper())__@(library_name.upper())_HPP_ #define @(package_name.upper())__@(library_name.upper())_HPP_ #include "@(package_name)/visibility_control.h" namespace @(package_name) { class @(class_name) { public: @(class_name)(); virtual ~@(c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/cpp/header.hpp.em", "license": "apache-2.0", "size": 383}
### File: ros2pkg/ros2pkg/resource/cpp/library.cpp.em #include "@(package_name)/@(library_name).hpp" namespace @(package_name) { @(class_name)::@(class_name)() { } @(class_name)::~@(class_name)() { } } // namespace @(package_name)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/cpp/library.cpp.em", "license": "apache-2.0", "size": 182}
### File: ros2pkg/ros2pkg/resource/cpp/main.cpp.em #include <cstdio> int main(int argc, char ** argv) { (void) argc; (void) argv; printf("hello world @(package_name) package\n"); return 0; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/cpp/main.cpp.em", "license": "apache-2.0", "size": 150}
### File: ros2pkg/ros2pkg/resource/cpp/visibility_control.h.em #ifndef @(package_name)__VISIBILITY_CONTROL_H_ #define @(package_name)__VISIBILITY_CONTROL_H_ // This logic was borrowed (then namespaced) from the examples on the gcc wiki: // https://gcc.gnu.org/wiki/Visibility #if defined _WIN32 || defined __CYGWIN...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/cpp/visibility_control.h.em", "license": "apache-2.0", "size": 1266}
### File: ros2pkg/ros2pkg/resource/package_environment/package.xml.em <?xml version="1.0"?> <?xml-model href="http://download.ros.org/schema/package_format@(package_format).xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> <package format="@package_format"> <name>@package_name</name> <version>0.0.0</version> ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/resource/package_environment/package.xml.em", "license": "apache-2.0", "size": 925}
### File: ros2pkg/ros2pkg/verb/__init__.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/verb/__init__.py", "license": "apache-2.0", "size": 1328}
### File: ros2pkg/ros2pkg/verb/create.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/verb/create.py", "license": "apache-2.0", "size": 9632}
### File: ros2pkg/ros2pkg/verb/executables.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/verb/executables.py", "license": "apache-2.0", "size": 2032}
### File: ros2pkg/ros2pkg/verb/list.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/verb/list.py", "license": "apache-2.0", "size": 874}
### File: ros2pkg/ros2pkg/verb/prefix.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/verb/prefix.py", "license": "apache-2.0", "size": 1708}
### File: ros2pkg/ros2pkg/verb/xml.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/ros2pkg/verb/xml.py", "license": "apache-2.0", "size": 2057}
### File: ros2pkg/setup.py from setuptools import find_packages from setuptools import setup package_name = 'ros2pkg' setup( name=package_name, version='0.36.0', packages=find_packages(exclude=['test']), data_files=[ ('share/' + package_name, ['package.xml']), ('share/ament_index/resou...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2pkg/setup.py", "license": "apache-2.0", "size": 1817}
### File: ros2run/ros2run/api/__init__.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2run/ros2run/api/__init__.py", "license": "apache-2.0", "size": 3363}
### File: ros2run/ros2run/command/run.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2run/ros2run/command/run.py", "license": "apache-2.0", "size": 2730}
### File: ros2run/setup.py from setuptools import find_packages from setuptools import setup package_name = 'ros2run' setup( name=package_name, version='0.36.0', packages=find_packages(exclude=['test']), data_files=[ ('share/' + package_name, ['package.xml']), ('share/ament_index/resou...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2run/setup.py", "license": "apache-2.0", "size": 1312}
### File: ros2service/ros2service/api/__init__.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/ros2service/api/__init__.py", "license": "apache-2.0", "size": 5600}
### File: ros2service/ros2service/command/service.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/ros2service/command/service.py", "license": "apache-2.0", "size": 1479}
### File: ros2service/ros2service/verb/__init__.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/ros2service/verb/__init__.py", "license": "apache-2.0", "size": 1332}
### File: ros2service/ros2service/verb/call.py # Copyright 2016-2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licens...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/ros2service/verb/call.py", "license": "apache-2.0", "size": 4652}
### File: ros2service/ros2service/verb/echo.py # Copyright 2022 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/ros2service/verb/echo.py", "license": "apache-2.0", "size": 7023}
### File: ros2service/ros2service/verb/find.py # Copyright 2019 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/ros2service/verb/find.py", "license": "apache-2.0", "size": 2155}
### File: ros2service/ros2service/verb/info.py # Copyright 2022 CLOBOT Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/ros2service/verb/info.py", "license": "apache-2.0", "size": 2159}
### File: ros2service/ros2service/verb/list.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/ros2service/verb/list.py", "license": "apache-2.0", "size": 2124}
### File: ros2service/ros2service/verb/type.py # Copyright 2019 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/ros2service/verb/type.py", "license": "apache-2.0", "size": 1645}
### File: ros2service/setup.py from setuptools import find_packages from setuptools import setup package_name = 'ros2service' setup( name=package_name, version='0.36.0', packages=find_packages(exclude=['test']), data_files=[ ('share/' + package_name, ['package.xml']), ('share/ament_ind...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2service/setup.py", "license": "apache-2.0", "size": 1820}
### File: ros2topic/ros2topic/api/__init__.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/api/__init__.py", "license": "apache-2.0", "size": 10123}
### File: ros2topic/ros2topic/command/topic.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/command/topic.py", "license": "apache-2.0", "size": 1469}
### File: ros2topic/ros2topic/verb/__init__.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/__init__.py", "license": "apache-2.0", "size": 1330}
### File: ros2topic/ros2topic/verb/bw.py # Copyright (c) 2008, Willow Garage, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/bw.py", "license": "apache-2.0", "size": 6464}
### File: ros2topic/ros2topic/verb/delay.py # Copyright (c) 2008, Willow Garage, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/delay.py", "license": "apache-2.0", "size": 6615}
### File: ros2topic/ros2topic/verb/echo.py # Copyright 2016-2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/echo.py", "license": "apache-2.0", "size": 13374}
### File: ros2topic/ros2topic/verb/find.py # Copyright 2019 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/find.py", "license": "apache-2.0", "size": 2189}
### File: ros2topic/ros2topic/verb/hz.py # Copyright (c) 2008, Willow Garage, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/hz.py", "license": "apache-2.0", "size": 12277}
### File: ros2topic/ros2topic/verb/info.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/info.py", "license": "apache-2.0", "size": 3055}
### File: ros2topic/ros2topic/verb/list.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/list.py", "license": "apache-2.0", "size": 3561}
### File: ros2topic/ros2topic/verb/pub.py # Copyright 2016-2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/pub.py", "license": "apache-2.0", "size": 8404}
### File: ros2topic/ros2topic/verb/type.py # Copyright 2019 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/ros2topic/verb/type.py", "license": "apache-2.0", "size": 1708}
### File: ros2topic/setup.py from setuptools import find_packages from setuptools import setup package_name = 'ros2topic' setup( name=package_name, version='0.36.0', packages=find_packages(exclude=['test']), data_files=[ ('share/' + package_name, ['package.xml']), ('share/ament_index/r...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/setup.py", "license": "apache-2.0", "size": 1923}
### File: ros2topic/test/qos_subscription.py # Copyright 2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2cli", "path": "ros2topic/test/qos_subscription.py", "license": "apache-2.0", "size": 3303}
### File: docker/kinetic/Dockerfile FROM ubuntu:16.04 LABEL maintainer="alberto dot soragna at gmail dot com" # working directory ENV HOME /root WORKDIR $HOME ENV TZ=America/Los_Angeles RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN apt-get update && apt-get install -y \ git \...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Dockerfile", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/kinetic/Dockerfile", "license": "mit", "size": 1201}
### File: docker/kinetic/build.sh docker build -t ros_kinetic .
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/kinetic/build.sh", "license": "mit", "size": 31}
### File: docker/kinetic/run.sh docker run -it ros_kinetic bash
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/kinetic/run.sh", "license": "mit", "size": 35}
### File: docker/ros2_bouncy_dev/Dockerfile FROM osrf/ros2:bouncy-desktop LABEL maintainer="alberto dot soragna at gmail dot com" # working directory ENV HOME /root WORKDIR $HOME # general utilities RUN apt-get update && apt-get install -y \ curl \ wget \ git \ vim \ nano \ python3-pip # pip...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Dockerfile", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_bouncy_dev/Dockerfile", "license": "mit", "size": 1511}
### File: docker/ros2_bouncy_dev/build.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 docker build -t ros2_bouncy_dev .
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_bouncy_dev/build.sh", "license": "mit", "size": 122}
### File: docker/ros2_bouncy_dev/run.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 XSOCK=/tmp/.X11-unix docker run -it --rm \ --net=host \ --privileged \ -e DISPLAY=$DISPLAY \ -v $XSOCK:$XSOCK \ -v $HOME/.Xauthority:/root/.Xauthority \ --volume=$PWD/../...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_bouncy_dev/run.sh", "license": "mit", "size": 340}
### File: docker/ros2_bouncy_dev_nvidia/Dockerfile FROM osrf/ros2:bouncy-desktop LABEL maintainer="alberto dot soragna at gmail dot com" # working directory ENV HOME /root WORKDIR $HOME # nvidia-container-runtime ENV NVIDIA_VISIBLE_DEVICES \ ${NVIDIA_VISIBLE_DEVICES:-all} ENV NVIDIA_DRIVER_CAPABILITIES \ ${NV...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Dockerfile", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_bouncy_dev_nvidia/Dockerfile", "license": "mit", "size": 1581}
### File: docker/ros2_bouncy_dev_nvidia/build.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 docker build -t ros2_bouncy_dev_nvidia .
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_bouncy_dev_nvidia/build.sh", "license": "mit", "size": 131}
### File: docker/ros2_bouncy_dev_nvidia/run.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 XSOCK=/tmp/.X11-unix docker run -it --rm \ --runtime=nvidia \ -e DISPLAY=$DISPLAY \ -v $XSOCK:$XSOCK \ -v $HOME/.Xauthority:/root/.Xauthority \ --privileged \ --net=host \ ros2...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_bouncy_dev_nvidia/run.sh", "license": "mit", "size": 297}
### File: docker/ros2_crystal_dev/Dockerfile FROM ubuntu:18.04 LABEL maintainer="alberto dot soragna at gmail dot com" # working directory ENV HOME /root WORKDIR $HOME # Set timezone otherwise tz will ask for it ENV TZ=America/Los_Angeles RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Dockerfile", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_crystal_dev/Dockerfile", "license": "mit", "size": 2297}
### File: docker/ros2_crystal_dev/build.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 docker build -t ros2_crystal_dev .
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_crystal_dev/build.sh", "license": "mit", "size": 122}
### File: docker/ros2_crystal_dev/run.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 XSOCK=/tmp/.X11-unix docker run -it --rm \ --net=host \ --privileged \ -e DISPLAY=$DISPLAY \ -v $XSOCK:$XSOCK \ -v $HOME/.Xauthority:/root/.Xauthority \ --volume=$PWD/../../:/root/ros2...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_crystal_dev/run.sh", "license": "mit", "size": 322}
### File: docker/ros2_tensorflow_nvidia/Dockerfile FROM ubuntu:16.04 LABEL maintainer="alberto dot soragna at gmail dot com" # working directory ENV HOME /root WORKDIR $HOME # nvidia-container-runtime ENV NVIDIA_VISIBLE_DEVICES \ ${NVIDIA_VISIBLE_DEVICES:-all} ENV NVIDIA_DRIVER_CAPABILITIES \ ${NVIDIA_DRIVER_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Dockerfile", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_tensorflow_nvidia/Dockerfile", "license": "mit", "size": 2680}
### File: docker/ros2_tensorflow_nvidia/build.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 docker build -t ros2_tensorflow_nvidia .
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_tensorflow_nvidia/build.sh", "license": "mit", "size": 131}
### File: docker/ros2_tensorflow_nvidia/run.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 XSOCK=/tmp/.X11-unix # --runtime=nvidia \ docker run -it --rm \ -e DISPLAY=$DISPLAY \ -v $XSOCK:$XSOCK \ -v $HOME/.Xauthority:/root/.Xauthority \ --privileged \ --net=host \ ro...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/ros2_tensorflow_nvidia/run.sh", "license": "mit", "size": 299}
### File: docker/turtlebot/Dockerfile FROM osrf/ros2:bouncy-desktop LABEL maintainer="alberto dot soragna at gmail dot com" # working directory ENV HOME /root WORKDIR $HOME ENV TZ=America/Los_Angeles RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # general utilities RUN apt-get updat...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Dockerfile", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/Dockerfile", "license": "mit", "size": 2870}
### File: docker/turtlebot/build.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 docker build -t ros2_turtlebot .
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/build.sh", "license": "mit", "size": 121}
### File: docker/turtlebot/run.sh #!/bin/bash # # @author Alberto Soragna (alberto dot soragna at gmail dot com) # @2018 XSOCK=/tmp/.X11-unix docker run -it --rm \ -e DISPLAY=$DISPLAY \ -v $XSOCK:$XSOCK \ -v $HOME/.Xauthority:/root/.Xauthority \ -v $PWD/scripts:/root/scripts \ --privileged \ --net=host \...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/run.sh", "license": "mit", "size": 313}
### File: docker/turtlebot/scripts/cartographer_config/original.lua -- Copyright 2016 The Cartographer Authors -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/scripts/cartographer_config/original.lua", "license": "mit", "size": 1609}
### File: docker/turtlebot/scripts/cartographer_config/turtlebot2.lua -- Copyright 2016 The Cartographer Authors -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apac...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/scripts/cartographer_config/turtlebot2.lua", "license": "mit", "size": 2134}
### File: docker/turtlebot/scripts/cartographer_config/turtlebot3_lds_2d.lua include "map_builder.lua" include "trajectory_builder.lua" options = { map_builder = MAP_BUILDER, trajectory_builder = TRAJECTORY_BUILDER, map_frame = "map", tracking_frame = "imu_link", published_frame = "odom", odom_frame = "odo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/scripts/cartographer_config/turtlebot3_lds_2d.lua", "license": "mit", "size": 978}
### File: docker/turtlebot/scripts/cartographer_config/turtlebot3_lds_2d_old.lua include "map_builder.lua" include "trajectory_builder.lua" options = { map_builder = MAP_BUILDER, trajectory_builder = TRAJECTORY_BUILDER, map_frame = "map", tracking_frame = "base_footprint", published_frame = "odom", odom_fr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/scripts/cartographer_config/turtlebot3_lds_2d_old.lua", "license": "mit", "size": 984}
### File: docker/turtlebot/scripts/launch/cartographer.launch.py import os from ament_index_python.packages import get_package_share_directory from ros2run.api import get_executable_path def launch(launch_descriptor, argv): ld = launch_descriptor package = 'cartographer_ros' turtlebot3_cartographer_prefix...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/scripts/launch/cartographer.launch.py", "license": "mit", "size": 942}
### File: docker/turtlebot/scripts/launch/turtlebot3_bringup.launch.py import os from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch_ros.actions import Node def generate_launch_description(): urdf = '/root/scripts/visualization/turtlebot3_wafflepi....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/scripts/launch/turtlebot3_bringup.launch.py", "license": "mit", "size": 876}
### File: docker/turtlebot/scripts/orbslam/CMakeLists.txt cmake_minimum_required(VERSION 2.4.6) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) rosbuild_init() IF(NOT ROS_BUILD_TYPE) SET(ROS_BUILD_TYPE Release) ENDIF() MESSAGE("Build type: " ${ROS_BUILD_TYPE}) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/scripts/orbslam/CMakeLists.txt", "license": "mit", "size": 1876}
### File: docker/turtlebot/scripts/orbslam/build_ros.sh echo "Building ROS nodes" cd Examples/ROS/ORB_SLAM2 mkdir build cd build cmake .. -DROS_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 make -j
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/scripts/orbslam/build_ros.sh", "license": "mit", "size": 155}
### File: docker/turtlebot/scripts/ros_master_network_setup.sh #!/bin/bash WIFI_INTERFACE=$(iw dev | awk '$1=="Interface"{print $2}') IP_ADDRESS=$(ifconfig $WIFI_INTERFACE | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1') echo "Detected WIFI_INTERFACE: ${WIFI_INTE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/ros2-code-examples", "path": "docker/turtlebot/scripts/ros_master_network_setup.sh", "license": "mit", "size": 500}
### File: simple_action/CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(simple_action) # Default to C++14 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() find_packa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_action/CMakeLists.txt", "license": "mit", "size": 797}
### File: simple_action/src/client_main.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/license...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_action/src/client_main.cpp", "license": "mit", "size": 4542}
### File: simple_action/src/service_main.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licens...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_action/src/service_main.cpp", "license": "mit", "size": 4162}
### File: simple_backward_compatible/CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(simple_backward_compatible) ## Comment the following line if you want to build V1 of the code to test backward compatibility #set(BUILD_V2 true) # Default to C++14 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) en...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_backward_compatible/CMakeLists.txt", "license": "mit", "size": 1331}
### File: simple_backward_compatible/interfaces_v1/msg/OptionalFields.msg string data
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "omnetpp-msg", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_backward_compatible/interfaces_v1/msg/OptionalFields.msg", "license": "mit", "size": 11}
### File: simple_backward_compatible/interfaces_v2/msg/OptionalFields.msg string data bool[<=1] optional_boolean int32[] optional_vector
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "omnetpp-msg", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_backward_compatible/interfaces_v2/msg/OptionalFields.msg", "license": "mit", "size": 62}
### File: simple_backward_compatible/src/publisher_main.cpp #include <memory> #include <iostream> #include <thread> #include <sstream> #include "rclcpp/rclcpp.hpp" #include "simple_backward_compatible/msg/optional_fields.hpp" using namespace std::chrono_literals; using OptionalFieldsMsg = simple_backward_compatible::...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_backward_compatible/src/publisher_main.cpp", "license": "mit", "size": 1598}
### File: simple_backward_compatible/src/subscriber_main.cpp #include <memory> #include <iostream> #include <thread> #include <sstream> #include "rclcpp/rclcpp.hpp" #include "simple_backward_compatible/msg/optional_fields.hpp" using OptionalFieldsMsg = simple_backward_compatible::msg::OptionalFields; class SimpleSub...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_backward_compatible/src/subscriber_main.cpp", "license": "mit", "size": 1001}
### File: simple_client/CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(simple_client) # Default to C++14 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() find_packa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_client/CMakeLists.txt", "license": "mit", "size": 1293}
### File: simple_client/include/simple_client/simple_client_node.hpp #ifndef __SIMPLE_CLIENT_NODE_HPP__ #define __SIMPLE_CLIENT_NODE_HPP__ #include "rclcpp/rclcpp.hpp" #include "simple_interfaces/srv/get_image.hpp" class SimpleClientNode : public rclcpp::Node { public: SimpleClientNode(std::string name = "sim...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_client/include/simple_client/simple_client_node.hpp", "license": "mit", "size": 419}
### File: simple_client/include/simple_client/timer_client_node.hpp #ifndef __TIMER_CLIENT_NODE_HPP__ #define __TIMER_CLIENT_NODE_HPP__ #include "rclcpp/rclcpp.hpp" #include "simple_interfaces/srv/get_image.hpp" class TimerClientNode : public rclcpp::Node { public: TimerClientNode(std::string name = "timer_clie...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_client/include/simple_client/timer_client_node.hpp", "license": "mit", "size": 645}
### File: simple_client/src/client_main.cpp #include "rclcpp/rclcpp.hpp" #include "simple_client/simple_client_node.hpp" int main(int argc, char *argv[]) { rclcpp::init(argc, argv); std::shared_ptr<SimpleClientNode> node = std::make_shared<SimpleClientNode>(); node->run_request_loop(); rclcpp::shutdown(); ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_client/src/client_main.cpp", "license": "mit", "size": 292}
### File: simple_client/src/simple_client_node.cpp #include "simple_client/simple_client_node.hpp" using GetImageSrv = simple_interfaces::srv::GetImage; using namespace std::chrono_literals; SimpleClientNode::SimpleClientNode(std::string name) : Node(name) { rmw_qos_profile_t qos_profile = rmw_qos_profile_defaul...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_client/src/simple_client_node.cpp", "license": "mit", "size": 1868}
### File: simple_client/src/timer_client_node.cpp #include "simple_client/timer_client_node.hpp" using GetImageSrv = simple_interfaces::srv::GetImage; using namespace std::chrono_literals; TimerClientNode::TimerClientNode(std::string name) : Node(name) { rmw_qos_profile_t qos_profile = rmw_qos_profile_default; ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_client/src/timer_client_node.cpp", "license": "mit", "size": 1706}
### File: simple_client/src/timer_main.cpp #include "rclcpp/rclcpp.hpp" #include "simple_client/timer_client_node.hpp" int main(int argc, char *argv[]) { rclcpp::init(argc, argv); std::shared_ptr<TimerClientNode> node = std::make_shared<TimerClientNode>(); rclcpp::spin(node); rclcpp::shutdown(); return 0...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_client/src/timer_main.cpp", "license": "mit", "size": 282}
### File: simple_interfaces/CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(simple_interfaces) # Default to C++14 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") # we dont use add_compile_options with pedantic in messag...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_interfaces/CMakeLists.txt", "license": "mit", "size": 1180}
### File: simple_interfaces/msg/StampedArray4m.msg std_msgs/Header header byte[4194304] array
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "omnetpp-msg", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_interfaces/msg/StampedArray4m.msg", "license": "mit", "size": 42}
### File: simple_interfaces/msg/StampedBoolean.msg std_msgs/Header header bool data
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "omnetpp-msg", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_interfaces/msg/StampedBoolean.msg", "license": "mit", "size": 32}
### File: simple_interfaces/msg/StampedString.msg std_msgs/Header header string data
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "omnetpp-msg", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_interfaces/msg/StampedString.msg", "license": "mit", "size": 34}
### File: simple_latency_test/CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(simple_latency_test) # Default to C++14 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif()...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_latency_test/CMakeLists.txt", "license": "mit", "size": 1574}
### File: simple_latency_test/include/simple_latency_test/pub.hpp #pragma once #include "rclcpp/rclcpp.hpp" using namespace std::chrono_literals; template<typename MsgType> class SimplePublisherNode : public rclcpp::Node { public: SimplePublisherNode() : Node("publisher_node") { _publisher = this->cr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-code-examples", "path": "simple_latency_test/include/simple_latency_test/pub.hpp", "license": "mit", "size": 870}