Skip to content

Instantly share code, notes, and snippets.

@vijaravind
vijaravind / merge-ros-pointcloud.cpp
Last active April 22, 2022 11:19
Sample code to concatenate ROS PointCloud (not PointCloud2) data
/**
* \brief Function to merge the vectors of geometry_msgs::Point32
* \param vin : input vector
* \param vout : output vector (output value)
*/
void merge_point32_vector(const std::vector<geometry_msgs::Point32>& vin, std::vector<geometry_msgs::Point32>& vout)
{
vout.reserve(vout.size() + vin.size());
vout.insert(vout.end(), vin.begin(), vin.end());
@vijaravind
vijaravind / manage-ros-env.py
Created October 16, 2015 05:08
Python script to manage ROS environment
#!/usr/bin/env python
"""
Script to manage ROS environment.
"""
import os
import sys