This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include "ros/ros.h" | |
#include "geometry_msgs/PoseStamped.h" | |
std::vector<geometry_msgs::PoseStamped::ConstPtr> poses; | |
void handle_poses(const geometry_msgs::PoseStamped::ConstPtr& msg) | |
{ | |
ROS_INFO_STREAM("Received pose: " << msg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.5) | |
project(test_pkg) | |
find_package(ament_cmake REQUIRED) | |
find_package(rosidl_default_generators REQUIRED) | |
rosidl_generate_interfaces(${PROJECT_NAME}_ext_to_avoid_target_collision "msg/MyMsg.msg") | |
ament_package() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <vector> | |
struct SerializedMessage | |
{ | |
// ... | |
}; | |
class RosbagIOStorageInterface | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import argparse | |
import json | |
import os | |
import sys | |
from catkin_pkg.packages import find_packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/demo_nodes_cpp/src/topics/listener.cpp b/demo_nodes_cpp/src/topics/listener.cpp | |
index 454f896..aa81a66 100644 | |
--- a/demo_nodes_cpp/src/topics/listener.cpp | |
+++ b/demo_nodes_cpp/src/topics/listener.cpp | |
@@ -14,6 +14,7 @@ | |
#include <iostream> | |
#include <memory> | |
+#include <vector> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
using std::chrono_literals::operator ""h; | |
constexpr double operator "" _ping(unsigned long long ping) | |
{ | |
return double(ping); | |
} | |
constexpr double operator "" pong(unsigned long long pong) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <vector> | |
struct NodeBaseIface { | |
virtual std::string get_name() = 0; | |
}; | |
struct NodeBase : public NodeBaseIface { | |
explicit NodeBase(std::string name) : name_(name) {} | |
virtual std::string get_name() {return name_;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: 6b3f5b7155712b0b3208250f30d73b45f5b079ec | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: d4a45a6e03d44883cc12e4ded80e9252e8706557 | |
ament/ament_lint: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "rclcpp/rclcpp.hpp" | |
#include <memory> | |
using rclcpp::parameter_client::AsyncParametersClient; | |
rclcpp::node::Node::SharedPtr node; | |
void spin() | |
{ |
NewerOlder