text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: simple_latency_test/include/simple_latency_test/sub.hpp
#pragma once
#include "rclcpp/rclcpp.hpp"
template<typename MsgType>
class SimpleSubscriberNode : public rclcpp::Node
{
public:
SimpleSubscriberNode() : Node("subscriber_node")
{
_subscriber = this->create_subscription<MsgType>("my_top... | {"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/sub.hpp", "license": "mit", "size": 1011} |
### File: simple_latency_test/interfaces/msg/Array1mb.msg
std_msgs/Header header
byte[1000000] 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_latency_test/interfaces/msg/Array1mb.msg", "license": "mit", "size": 41} |
### File: simple_latency_test/interfaces/msg/Array250kb.msg
std_msgs/Header header
byte[250000] 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_latency_test/interfaces/msg/Array250kb.msg", "license": "mit", "size": 40} |
### File: simple_latency_test/interfaces/msg/Array750kb.msg
std_msgs/Header header
byte[750000] 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_latency_test/interfaces/msg/Array750kb.msg", "license": "mit", "size": 40} |
### File: simple_latency_test/interfaces/msg/Dynamic.msg
std_msgs/Header header
byte[] 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_latency_test/interfaces/msg/Dynamic.msg", "license": "mit", "size": 34} |
### File: simple_latency_test/src/pub_sub_1mb.cpp
#include <memory>
#include <iostream>
#include <thread>
#include "rclcpp/rclcpp.hpp"
#include "simple_latency_test/msg/array1mb.hpp"
#include "simple_latency_test/pub.hpp"
#include "simple_latency_test/sub.hpp"
using namespace std::chrono_literals;
using MsgType = si... | {"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/src/pub_sub_1mb.cpp", "license": "mit", "size": 942} |
### File: simple_latency_test/src/pub_sub_250kb.cpp
#include <memory>
#include <iostream>
#include <thread>
#include <sstream>
#include "rclcpp/rclcpp.hpp"
#include "simple_latency_test/msg/array750kb.hpp"
#include "simple_latency_test/pub.hpp"
#include "simple_latency_test/sub.hpp"
using namespace std::chrono_litera... | {"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/src/pub_sub_250kb.cpp", "license": "mit", "size": 966} |
### File: simple_latency_test/src/pub_sub_750kb.cpp
#include <memory>
#include <iostream>
#include <thread>
#include <sstream>
#include "rclcpp/rclcpp.hpp"
#include "simple_latency_test/msg/array250kb.hpp"
#include "simple_latency_test/pub.hpp"
#include "simple_latency_test/sub.hpp"
using namespace std::chrono_litera... | {"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/src/pub_sub_750kb.cpp", "license": "mit", "size": 966} |
### File: simple_latency_test/src/pub_sub_dynamic.cpp
#include <memory>
#include <iostream>
#include <thread>
#include <sstream>
#include "rclcpp/rclcpp.hpp"
#include "simple_latency_test/msg/dynamic.hpp"
#include "simple_latency_test/sub.hpp"
using namespace std::chrono_literals;
using MsgType = simple_latency_test... | {"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/src/pub_sub_dynamic.cpp", "license": "mit", "size": 1992} |
### File: simple_logger/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(simple_logger)
# 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_logger/CMakeLists.txt", "license": "mit", "size": 509} |
### File: simple_logger/logger_main.cpp
#include "rclcpp/rclcpp.hpp"
#include <cinttypes>
#include <iostream>
#include <memory>
#include <string>
using namespace std::chrono_literals;
int main(int argc, char ** argv)
{
// initialize ros2 and create a node
rclcpp::init(argc, argv);
rclcpp::Node::SharedP... | {"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_logger/logger_main.cpp", "license": "mit", "size": 2517} |
### File: simple_multithread/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(simple_multithread)
# 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_multithread/CMakeLists.txt", "license": "mit", "size": 869} |
### File: simple_multithread/executor_main.cpp
#include <chrono>
#include <memory>
#include <iostream>
#include <thread>
#include "rclcpp/rclcpp.hpp"
#include "simple_publisher/simple_publisher_node.hpp"
#include "simple_subscriber/simple_subscriber_node.hpp"
int main(int argc, char ** argv)
{
rclcpp::init(argc... | {"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_multithread/executor_main.cpp", "license": "mit", "size": 745} |
### File: simple_multithread/multithread_main.cpp
#include <chrono>
#include <memory>
#include <iostream>
#include <thread>
#include "rclcpp/rclcpp.hpp"
#include "simple_publisher/simple_publisher_node.hpp"
#include "simple_subscriber/simple_subscriber_node.hpp"
using namespace std::chrono_literals;
int main(int ar... | {"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_multithread/multithread_main.cpp", "license": "mit", "size": 1100} |
### File: simple_navigation/bt_navigation.launch.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/licens... | {"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": "simple_navigation/bt_navigation.launch.py", "license": "mit", "size": 4406} |
### File: simple_parameter/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(simple_parameter)
# 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... | {"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_parameter/CMakeLists.txt", "license": "mit", "size": 957} |
### File: simple_parameter/include/simple_parameter/simple_parameter_client_node.hpp
#ifndef __SIMPLE_PARAMETER_CLIENT_NODE_HPP__
#define __SIMPLE_PARAMETER_CLIENT_NODE_HPP__
#include "rclcpp/rclcpp.hpp"
class SimpleParameterClientNode : public rclcpp::Node {
public:
SimpleParameterClientNode();
void get_... | {"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_parameter/include/simple_parameter/simple_parameter_client_node.hpp", "license": "mit", "size": 66... |
### File: simple_parameter/include/simple_parameter/simple_parameter_server_node.hpp
#ifndef __SIMPLE_PARAMETER_SERVER_NODE_HPP__
#define __SIMPLE_PARAMETER_SERVER_NODE_HPP__
#include "rclcpp/rclcpp.hpp"
class SimpleParameterServerNode : public rclcpp::Node {
public:
SimpleParameterServerNode();
private:
... | {"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_parameter/include/simple_parameter/simple_parameter_server_node.hpp", "license": "mit", "size": 31... |
### File: simple_parameter/src/parameter_client_main.cpp
#include "rclcpp/rclcpp.hpp"
#include "simple_parameter/simple_parameter_client_node.hpp"
int main(int argc, char ** argv)
{
rclcpp::init(argc, argv);
std::shared_ptr<SimpleParameterClientNode> node = std::make_shared<SimpleParameterClientNode>();
node... | {"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_parameter/src/parameter_client_main.cpp", "license": "mit", "size": 523} |
### File: simple_parameter/src/parameter_server_main.cpp
#include "rclcpp/rclcpp.hpp"
#include "simple_parameter/simple_parameter_server_node.hpp"
int main(int argc, char ** argv)
{
rclcpp::init(argc, argv);
std::shared_ptr<SimpleParameterServerNode> node = std::make_shared<SimpleParameterServerNode>();
rclc... | {"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_parameter/src/parameter_server_main.cpp", "license": "mit", "size": 318} |
### File: simple_parameter/src/simple_parameter_client_node.cpp
#include "simple_parameter/simple_parameter_client_node.hpp"
SimpleParameterClientNode::SimpleParameterClientNode() : Node("simple_parameters_client")
{
_param_client = std::make_shared<rclcpp::AsyncParametersClient>(this, "simple_parameters_server");
... | {"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_parameter/src/simple_parameter_client_node.cpp", "license": "mit", "size": 5141} |
### File: simple_parameter/src/simple_parameter_server_node.cpp
#include "simple_parameter/simple_parameter_server_node.hpp"
SimpleParameterServerNode::SimpleParameterServerNode() : Node("simple_parameters_server")
{
RCLCPP_INFO(this->get_logger(), "Parameters Server created!!");
this->parameters_init();
... | {"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_parameter/src/simple_parameter_server_node.cpp", "license": "mit", "size": 7759} |
### File: simple_publisher/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(simple_publisher)
# 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... | {"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_publisher/CMakeLists.txt", "license": "mit", "size": 1108} |
### File: simple_publisher/include/simple_publisher/simple_publisher_node.hpp
#ifndef __SIMPLE_PUBLISHER_NODE_HPP__
#define __SIMPLE_PUBLISHER_NODE_HPP__
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/string.hpp"
class SimplePublisherNode : public rclcpp::Node
{
public:
SimplePublisherNode(std::string name... | {"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_publisher/include/simple_publisher/simple_publisher_node.hpp", "license": "mit", "size": 466} |
### File: simple_publisher/src/publisher_main.cpp
#include "rclcpp/rclcpp.hpp"
#include "simple_publisher/simple_publisher_node.hpp"
int main(int argc, char ** argv)
{
rclcpp::init(argc, argv);
std::shared_ptr<SimplePublisherNode> node = std::make_shared<SimplePublisherNode>();
rclcpp::spin(node);
rclcpp::... | {"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_publisher/src/publisher_main.cpp", "license": "mit", "size": 296} |
### File: simple_publisher/src/simple_publisher_node.cpp
#include "simple_publisher/simple_publisher_node.hpp"
using namespace std::chrono_literals;
SimplePublisherNode::SimplePublisherNode(std::string name) : Node(name)
{
rclcpp::QoS qos_profile = rclcpp::QoS(rclcpp::QoSInitialization::from_rmw(rmw_qos_profile_... | {"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_publisher/src/simple_publisher_node.cpp", "license": "mit", "size": 1163} |
### File: simple_security/apply_access_control_policies.sh
#!/usr/bin/env bash
ros2 security create_permission $HOME/simple_keys simple_publisher policies.yaml
ros2 security create_permission $HOME/simple_keys simple_subscriber policies.yaml | {"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": "simple_security/apply_access_control_policies.sh", "license": "mit", "size": 185} |
### File: simple_security/create_keys.sh
#!/usr/bin/env bash
ros2 security create_key $HOME/simple_keys simple_publisher
ros2 security create_key $HOME/simple_keys simple_subscriber
ros2 security create_key $HOME/simple_keys additional_subscriber | {"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": "simple_security/create_keys.sh", "license": "mit", "size": 208} |
### File: simple_security/create_keystore.sh
#!/usr/bin/env bash
rm -rfv $HOME/simple_keys
ros2 security create_keystore $HOME/simple_keys
| {"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": "simple_security/create_keystore.sh", "license": "mit", "size": 98} |
### File: simple_security/disable_security.sh
#!/usr/bin/env bash
export ROS_SECURITY_ENABLE=''
export ROS_SECURITY_STRATEGY=''
export ROS_SECURITY_ROOT_DIRECTORY='' | {"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": "simple_security/disable_security.sh", "license": "mit", "size": 120} |
### File: simple_security/enable_security.sh
#!/usr/bin/env bash
export ROS_SECURITY_ENABLE=true
export ROS_SECURITY_STRATEGY=Enforce
export ROS_SECURITY_ROOT_DIRECTORY=$HOME/simple_keys | {"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": "simple_security/enable_security.sh", "license": "mit", "size": 142} |
### File: simple_service/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(simple_service)
# 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_pac... | {"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_service/CMakeLists.txt", "license": "mit", "size": 1112} |
### File: simple_service/include/simple_service/simple_service_node.hpp
#ifndef __SIMPLE_SERVICE_NODE_HPP__
#define __SIMPLE_SERVICE_NODE_HPP__
#include "rclcpp/rclcpp.hpp"
#include "simple_interfaces/srv/get_image.hpp"
class SimpleServiceNode : public rclcpp::Node
{
public:
SimpleServiceNode(std::string name ... | {"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_service/include/simple_service/simple_service_node.hpp", "license": "mit", "size": 654} |
### File: simple_service/src/service_main.cpp
#include "rclcpp/rclcpp.hpp"
#include "simple_service/simple_service_node.hpp"
int main(int argc, char ** argv)
{
rclcpp::init(argc, argv);
std::shared_ptr<SimpleServiceNode>node = std::make_shared<SimpleServiceNode>();
rclcpp::spin(node);
rclcpp::shut... | {"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_service/src/service_main.cpp", "license": "mit", "size": 300} |
### File: simple_service/src/simple_service_node.cpp
#include "simple_service/simple_service_node.hpp"
using GetImageSrv = simple_interfaces::srv::GetImage;
using ImageMsg = sensor_msgs::msg::Image;
using std::placeholders::_1;
using std::placeholders::_2;
using std::placeholders::_3;
SimpleServiceNode::SimpleServi... | {"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_service/src/simple_service_node.cpp", "license": "mit", "size": 1211} |
### File: simple_subscriber/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(simple_subscriber)
# 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()
fi... | {"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_subscriber/CMakeLists.txt", "license": "mit", "size": 1115} |
### File: simple_subscriber/include/simple_subscriber/simple_subscriber_node.hpp
#ifndef __SIMPLE_SUBSCRIBER_NODE_HPP__
#define __SIMPLE_SUBSCRIBER_NODE_HPP__
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/string.hpp"
class SimpleSubscriberNode : public rclcpp::Node
{
public:
SimpleSubscriberNode(std::stri... | {"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_subscriber/include/simple_subscriber/simple_subscriber_node.hpp", "license": "mit", "size": 468} |
### File: simple_subscriber/src/simple_subscriber_node.cpp
#include "simple_subscriber/simple_subscriber_node.hpp"
using namespace std::chrono_literals;
SimpleSubscriberNode::SimpleSubscriberNode(std::string name) : Node(name)
{
rclcpp::QoS qos_profile = rclcpp::QoS(rclcpp::QoSInitialization::from_rmw(rmw_qos_pro... | {"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_subscriber/src/simple_subscriber_node.cpp", "license": "mit", "size": 1021} |
### File: simple_subscriber/src/subscriber_main.cpp
#include "rclcpp/rclcpp.hpp"
#include "simple_subscriber/simple_subscriber_node.hpp"
int main(int argc, char ** argv)
{
rclcpp::init(argc, argv);
std::shared_ptr<SimpleSubscriberNode> node = std::make_shared<SimpleSubscriberNode>();
rclcpp::spin(node);
r... | {"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_subscriber/src/subscriber_main.cpp", "license": "mit", "size": 303} |
### File: simple_tf/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(simple_tf)
# 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_package(ament... | {"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_tf/CMakeLists.txt", "license": "mit", "size": 913} |
### File: simple_tf/include/simple_tf/simple_tf_listener_node.hpp
#ifndef __SIMPLE_TF_LISTENER_NODE_HPP__
#define __SIMPLE_TF_LISTENER_NODE_HPP__
#include "rclcpp/rclcpp.hpp"
#include "tf2_ros/transform_broadcaster.h"
#include "tf2_ros/transform_listener.h"
class SimpleTFListenerNode : public rclcpp::Node {
public:
... | {"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_tf/include/simple_tf/simple_tf_listener_node.hpp", "license": "mit", "size": 483} |
### File: simple_tf/include/simple_tf/simple_tf_static_publisher_node.hpp
#ifndef __SIMPLE_TF_STATIC_PUBLISHER_NODE_HPP__
#define __SIMPLE_TF_STATIC_PUBLISHER_NODE_HPP__
#include "rclcpp/rclcpp.hpp"
#include "tf2_ros/static_transform_broadcaster.h"
class SimpleTFStaticPublisherNode : public rclcpp::Node {
public:
... | {"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_tf/include/simple_tf/simple_tf_static_publisher_node.hpp", "license": "mit", "size": 463} |
### File: simple_tf/src/simple_tf_listener_node.cpp
#include "simple_tf/simple_tf_listener_node.hpp"
#include "tf2_ros/create_timer_ros.h"
using namespace std::chrono_literals;
SimpleTFListenerNode::SimpleTFListenerNode(std::string name) : Node(name)
{
/*
rclcpp::QoS qos_profile = rclcpp::QoS(rclcpp::QoSInitial... | {"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_tf/src/simple_tf_listener_node.cpp", "license": "mit", "size": 1036} |
### File: simple_tf/src/simple_tf_static_publisher_node.cpp
#include "simple_tf/simple_tf_static_publisher_node.hpp"
using namespace std::chrono_literals;
SimpleTFStaticPublisherNode::SimpleTFStaticPublisherNode(std::string name) : Node(name)
{
rclcpp::QoS qos_profile = rclcpp::QoS(rclcpp::QoSInitialization::from... | {"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_tf/src/simple_tf_static_publisher_node.cpp", "license": "mit", "size": 982} |
### File: simple_tf/src/tf_listener_main.cpp
#include "rclcpp/rclcpp.hpp"
#include "simple_tf/simple_tf_listener_node.hpp"
int main(int argc, char ** argv)
{
rclcpp::init(argc, argv);
std::shared_ptr<SimpleTFListenerNode> node = std::make_shared<SimpleTFListenerNode>();
rclcpp::spin(node);
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_tf/src/tf_listener_main.cpp", "license": "mit", "size": 295} |
### File: simple_tf/src/tf_static_publisher_main.cpp
#include "rclcpp/rclcpp.hpp"
#include "simple_tf/simple_tf_static_publisher_node.hpp"
int main(int argc, char ** argv)
{
rclcpp::init(argc, argv);
std::shared_ptr<SimpleTFStaticPublisherNode> node = std::make_shared<SimpleTFStaticPublisherNode>();
rclcpp::s... | {"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_tf/src/tf_static_publisher_main.cpp", "license": "mit", "size": 317} |
### File: simple_time_sync/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(simple_time_sync)
# 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... | {"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_time_sync/CMakeLists.txt", "license": "mit", "size": 782} |
### File: simple_time_sync/main.cpp
#include <chrono>
#include <inttypes.h>
#include <memory>
#include <iostream>
#include "rclcpp/time.hpp"
#include "rclcpp/rclcpp.hpp"
#include "simple_interfaces/msg/stamped_string.hpp"
#include "simple_interfaces/msg/stamped_boolean.hpp"
#include <message_filters/subscriber.h>
#in... | {"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_time_sync/main.cpp", "license": "mit", "size": 3014} |
### File: simple_time_sync/publisher.cpp
#include <chrono>
#include <inttypes.h>
#include <memory>
#include <iostream>
#include "rclcpp/rclcpp.hpp"
#include "simple_interfaces/msg/stamped_string.hpp"
#include "simple_interfaces/msg/stamped_boolean.hpp"
using namespace std::chrono_literals;
class MyNode : public rc... | {"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_time_sync/publisher.cpp", "license": "mit", "size": 3557} |
### File: rosidl_runtime_py/__init__.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/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/rosidl_runtime_py", "path": "rosidl_runtime_py/__init__.py", "license": "apache-2.0", "size": 1521} |
### File: rosidl_runtime_py/convert.py
# Copyright 2016-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/LICEN... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_runtime_py", "path": "rosidl_runtime_py/convert.py", "license": "apache-2.0", "size": 10442} |
### File: rosidl_runtime_py/get_interfaces.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/LIC... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_runtime_py", "path": "rosidl_runtime_py/get_interfaces.py", "license": "apache-2.0", "size": 8218} |
### File: rosidl_runtime_py/import_message.py
# Copyright 2019 Mikael Arguedas.
#
# 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 r... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_runtime_py", "path": "rosidl_runtime_py/import_message.py", "license": "apache-2.0", "size": 1487} |
### File: rosidl_runtime_py/set_message.py
# Copyright 2017-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/L... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_runtime_py", "path": "rosidl_runtime_py/set_message.py", "license": "apache-2.0", "size": 4906} |
### File: rosidl_runtime_py/utilities.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/LICENSE-... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_runtime_py", "path": "rosidl_runtime_py/utilities.py", "license": "apache-2.0", "size": 3477} |
### File: setup.py
from setuptools import find_packages
from setuptools import setup
package_name = 'rosidl_runtime_py'
setup(
name=package_name,
version='0.14.0',
packages=find_packages(exclude=['test']),
data_files=[
('share/' + package_name, ['package.xml']),
('share/ament_index/res... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_runtime_py", "path": "setup.py", "license": "apache-2.0", "size": 1237} |
### File: rosidl_generator_py/CMakeLists.txt
cmake_minimum_required(VERSION 3.14)
project(rosidl_generator_py)
find_package(ament_cmake REQUIRED)
ament_export_dependencies(ament_cmake)
ament_export_dependencies(rmw)
ament_index_register_resource("rosidl_generator_packages")
ament_python_install_package(${PROJECT_N... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/CMakeLists.txt", "license": "apache-2.0", "size": 3145} |
### File: rosidl_generator_py/cmake/custom_command.cmake
# Copyright 2016 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/l... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/cmake/custom_command.cmake", "license": "apache-2.0", "size": 1911} |
### File: rosidl_generator_py/cmake/register_py.cmake
# 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.apache.org/lice... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/cmake/register_py.cmake", "license": "apache-2.0", "size": 1449} |
### File: rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake
# Copyright 2014-2018 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
#... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake", "license": "apache-2.0", "size": 1... |
### File: rosidl_generator_py/cmake/rosidl_generator_py_get_typesupports.cmake
# Copyright 2016 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
#
# h... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/cmake/rosidl_generator_py_get_typesupports.cmake", "license": "apache-2.0", "size": 1050... |
### File: rosidl_generator_py/msg/Property.msg
string property
string anything
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "omnetpp-msg", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/msg/Property.msg", "license": "apache-2.0", "size": 32} |
### File: rosidl_generator_py/msg/StringArrays.msg
string<=5[3] ub_string_static_array_value
string<=5[<=10] ub_string_ub_array_value
string<=5[] ub_string_dynamic_array_value
string[] string_dynamic_array_value
string[3] string_static_array_value
string[<=10] string_bounded_array_value
string[] def_string_dynamic_arra... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "omnetpp-msg", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/msg/StringArrays.msg", "license": "apache-2.0", "size": 566} |
### File: rosidl_generator_py/resource/_action.py.em
@# Included from rosidl_generator_py/resource/_idl.py.em
@{
from rosidl_pycommon import convert_camel_case_to_lower_case_underscore
action_name = '_' + convert_camel_case_to_lower_case_underscore(action.namespaced_type.name)
module_name = '_' + convert_camel_case_to... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/resource/_action.py.em", "license": "apache-2.0", "size": 5119} |
### File: rosidl_generator_py/resource/_action_pkg_typesupport_entry_point.c.em
@# Included from rosidl_generator_py/resource/_idl_pkg_typesupport_entry_point.c.em
@
@{
TEMPLATE(
'_msg_pkg_typesupport_entry_point.c.em',
package_name=package_name, idl_type=action.namespaced_type,
message=action.goal, typesup... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/resource/_action_pkg_typesupport_entry_point.c.em", "license": "apache-2.0", "size... |
### File: rosidl_generator_py/resource/_msg.py.em
@# Included from rosidl_generator_py/resource/_idl.py.em
@{
from rosidl_pycommon import convert_camel_case_to_lower_case_underscore
from rosidl_generator_py.generate_py_impl import constant_value_to_py
from rosidl_generator_py.generate_py_impl import get_python_type
fr... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/resource/_msg.py.em", "license": "apache-2.0", "size": 25753} |
### File: rosidl_generator_py/resource/_msg_pkg_typesupport_entry_point.c.em
@# Included from rosidl_generator_py/resource/_idl_pkg_typesupport_entry_point.c.em
@{
from rosidl_pycommon import convert_camel_case_to_lower_case_underscore
include_parts = idl_type.namespaces + [
'detail', convert_camel_case_to_lower_c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/resource/_msg_pkg_typesupport_entry_point.c.em", "license": "apache-2.0", "size": ... |
### File: rosidl_generator_py/resource/_msg_support.c.em
@# Included from rosidl_generator_py/resource/_idl_support.c.em
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
@{
from rosidl_pycommon import convert_camel_case_to_lower_case_underscore
from rosidl_generator_py.generate_py_impl import SPECIAL_NESTED_BASIC_TYPE... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/resource/_msg_support.c.em", "license": "apache-2.0", "size": 32361} |
### File: rosidl_generator_py/resource/_srv.py.em
@# Included from rosidl_generator_py/resource/_idl.py.em
@{
from rosidl_pycommon import convert_camel_case_to_lower_case_underscore
service_name = '_' + convert_camel_case_to_lower_case_underscore(service.namespaced_type.name)
module_name = '_' + convert_camel_case_to_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/resource/_srv.py.em", "license": "apache-2.0", "size": 3089} |
### File: rosidl_generator_py/resource/_srv_pkg_typesupport_entry_point.c.em
@# Included from rosidl_generator_py/resource/_idl_pkg_typesupport_entry_point.c.em
@{
TEMPLATE(
'_msg_pkg_typesupport_entry_point.c.em',
package_name=package_name, idl_type=idl_type,
message=service.request_message, typesupport_im... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "EmberScript", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/resource/_srv_pkg_typesupport_entry_point.c.em", "license": "apache-2.0", "size": ... |
### File: rosidl_generator_py/rosidl_generator_py-extras.cmake.in
# generated from rosidl_generator_py/rosidl_generator_py-extras.cmake
include("${CMAKE_CURRENT_LIST_DIR}/register_py.cmake")
rosidl_generator_py_extras(
"${rosidl_generator_py_DIR}/../../../lib/rosidl_generator_py/rosidl_generator_py"
"${rosidl_gener... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/rosidl_generator_py-extras.cmake.in", "license": "apache-2.0", "size": 472} |
### File: rosidl_generator_py/rosidl_generator_py/__init__.py
# Copyright 2014-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.ap... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/rosidl_generator_py/__init__.py", "license": "apache-2.0", "size": 1031} |
### File: rosidl_generator_py/rosidl_generator_py/cli.py
# Copyright 2021 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/l... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/rosidl_generator_py/cli.py", "license": "apache-2.0", "size": 2803} |
### File: rosidl_generator_py/rosidl_generator_py/generate_py_impl.py
# Copyright 2014-2018 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:... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/rosidl_generator_py/generate_py_impl.py", "license": "apache-2.0", "size": 12581} |
### File: rosidl_generator_py/rosidl_generator_py/import_type_support_impl.py
# Copyright 2016 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
#
# ht... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/rosidl_python", "path": "rosidl_generator_py/rosidl_generator_py/import_type_support_impl.py", "license": "apache-2.0", "size": 1924... |
### File: action_tutorials/action_tutorials_cpp/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(action_tutorials_cpp)
# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
endif()
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-demos", "path": "action_tutorials/action_tutorials_cpp/CMakeLists.txt", "license": "apache-2.0", "size": 1443} |
### File: action_tutorials/action_tutorials_cpp/include/action_tutorials_cpp/visibility_control.h
// 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 ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/ros2-demos", "path": "action_tutorials/action_tutorials_cpp/include/action_tutorials_cpp/visibility_control.h", "license": "apache-2.0", ... |
### File: action_tutorials/action_tutorials_cpp/src/fibonacci_action_client.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
//
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "action_tutorials/action_tutorials_cpp/src/fibonacci_action_client.cpp", "license": "apache-2.0", "size": 4496} |
### File: action_tutorials/action_tutorials_cpp/src/fibonacci_action_server.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
//
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "action_tutorials/action_tutorials_cpp/src/fibonacci_action_server.cpp", "license": "apache-2.0", "size": 4390} |
### File: action_tutorials/action_tutorials_interfaces/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(action_tutorials_interfaces)
# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
endif()
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPI... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-demos", "path": "action_tutorials/action_tutorials_interfaces/CMakeLists.txt", "license": "apache-2.0", "size": 668} |
### File: action_tutorials/action_tutorials_py/action_tutorials_py/fibonacci_action_client.py
#!/usr/bin/env python3
# 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 obt... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2-demos", "path": "action_tutorials/action_tutorials_py/action_tutorials_py/fibonacci_action_client.py", "license": "apache-2.0",... |
### File: action_tutorials/action_tutorials_py/action_tutorials_py/fibonacci_action_server.py
#!/usr/bin/env python3
# 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 obt... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2-demos", "path": "action_tutorials/action_tutorials_py/action_tutorials_py/fibonacci_action_server.py", "license": "apache-2.0",... |
### File: action_tutorials/action_tutorials_py/setup.py
from setuptools import setup
package_name = 'action_tutorials_py'
setup(
name=package_name,
version='0.20.0',
packages=[package_name],
data_files=[
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2-demos", "path": "action_tutorials/action_tutorials_py/setup.py", "license": "apache-2.0", "size": 1184} |
### File: composition/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(composition)
# 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_package(... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-demos", "path": "composition/CMakeLists.txt", "license": "apache-2.0", "size": 6935} |
### File: composition/include/composition/client_component.hpp
// Copyright 2016 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": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/include/composition/client_component.hpp", "license": "apache-2.0", "size": 1207} |
### File: composition/include/composition/listener_component.hpp
// Copyright 2016 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://w... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/include/composition/listener_component.hpp", "license": "apache-2.0", "size": 1120} |
### File: composition/include/composition/node_like_listener_component.hpp
// 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
//
// ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/include/composition/node_like_listener_component.hpp", "license": "apache-2.0", "size": 1290} |
### File: composition/include/composition/server_component.hpp
// Copyright 2016 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": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/include/composition/server_component.hpp", "license": "apache-2.0", "size": 1135} |
### File: composition/include/composition/talker_component.hpp
// Copyright 2016 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": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/include/composition/talker_component.hpp", "license": "apache-2.0", "size": 1194} |
### File: composition/include/composition/visibility_control.h
// Copyright 2016 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": "C", "repo_name": "minhanghuang/ros2-demos", "path": "composition/include/composition/visibility_control.h", "license": "apache-2.0", "size": 1858} |
### File: composition/launch/composition_demo.launch.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/li... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/ros2-demos", "path": "composition/launch/composition_demo.launch.py", "license": "apache-2.0", "size": 1542} |
### File: composition/src/client_component.cpp
// Copyright 2016 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/lice... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/src/client_component.cpp", "license": "apache-2.0", "size": 3193} |
### File: composition/src/dlopen_composition.cpp
// Copyright 2016 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/li... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/src/dlopen_composition.cpp", "license": "apache-2.0", "size": 2347} |
### File: composition/src/linktime_composition.cpp
// Copyright 2016 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/... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/src/linktime_composition.cpp", "license": "apache-2.0", "size": 2349} |
### File: composition/src/listener_component.cpp
// Copyright 2016 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/li... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/src/listener_component.cpp", "license": "apache-2.0", "size": 2191} |
### File: composition/src/manual_composition.cpp
// Copyright 2016 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/li... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/src/manual_composition.cpp", "license": "apache-2.0", "size": 2304} |
### File: composition/src/node_like_listener_component.cpp
// Copyright 2016 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": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/src/node_like_listener_component.cpp", "license": "apache-2.0", "size": 2645} |
### File: composition/src/server_component.cpp
// Copyright 2016 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/lice... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/src/server_component.cpp", "license": "apache-2.0", "size": 1766} |
### File: composition/src/talker_component.cpp
// Copyright 2016 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/lice... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/ros2-demos", "path": "composition/src/talker_component.cpp", "license": "apache-2.0", "size": 2204} |
### File: demo_nodes_cpp/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(demo_nodes_cpp)
# 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_pa... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/ros2-demos", "path": "demo_nodes_cpp/CMakeLists.txt", "license": "apache-2.0", "size": 7086} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.