Skip to content

Instantly share code, notes, and snippets.

<sdf version="1.3">
<world name="world_1">
<scene>
<ambient>0.5 0.5 0.5 1.0</ambient>
<background>0.5 0.5 0.5 1.0</background>
<shadows>true</shadows>
<fog>
<color>0.0 0.0 0.5 0.5</color>
<type>linear</type>
<start>2.0</start>
@jacquelinekay
jacquelinekay / CMakeLists.txt
Created April 21, 2016 19:11
CMakeLists for PCL error
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(pcl_error)
find_package(PCL 1.7 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable(pcl_err pcl_err.cpp)
target_link_libraries(pcl_err ${PCL_LIBRARIES})
@jacquelinekay
jacquelinekay / pcl_err.cpp
Created April 21, 2016 19:10
Example of link error with pcl 1.7.2 in Ubuntu 16.04
#include <pcl/io/io.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
void
cloud_cb (const pcl::PCLPointCloud2::ConstPtr& cloud)
{
if ((cloud->width * cloud->height) == 0)
return;
:colorscheme koehler
:set tabstop=2
:set shiftwidth=2
:set expandtab
autocmd BufRead,BufNewFile *.launch setfiletype roslaunch
:autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/
:highlight ExtraWhitespace ctermbg=darkgreen guibg=lightgreen
@jacquelinekay
jacquelinekay / clang_segfault-3db907.sh
Last active April 13, 2016 19:07
Associated run script for Clang SFINAE segfault
"/usr/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name clang_segfault.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.24 -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 113 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -x c++ clang_segfault-3db907.cpp
@jacquelinekay
jacquelinekay / clang_segfault-3db907.cpp
Last active April 13, 2016 19:07
Preprocessed source for clang segfault
This file has been truncated, but you can view the full file.
# 1 "<built-in>" 1
# 1 "clang_segfault.cpp" 1
#if 0 /* expanded by -frewrite-includes */
#include <iostream>
#endif /* expanded by -frewrite-includes */
# 1 "/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/iostream" 1 3
// Standard iostream objects -*- C++ -*-
// Copyright (C) 1997-2013 Free Software Foundation, Inc.
//
@jacquelinekay
jacquelinekay / clang_sfinae_segfault.cc
Last active April 13, 2016 19:04
Clang 3.4 SFINAE bug
#include <iostream>
#include <functional>
#include <memory>
#include <utility>
class TimerBase
{
};
using VoidCallbackType = std::function<void()>;
<package format="2">
<name>urdfdom</name>
<version>1.2.4</version>
<description>
This package provides foo capability.
</description>
<maintainer email="[email protected]">Ivana Bildbotz</maintainer>
<license>BSD</license>
<build_depend>console_bridge</build_depend>
<package format="2">
<name>urdfdom_headers</name>
<version>1.2.4</version>
<description>
This package provides foo capability.
</description>
<maintainer email="[email protected]">Ivana Bildbotz</maintainer>
<license>BSD</license>
<export>
<build_type>cmake</build_type>
@jacquelinekay
jacquelinekay / test.py
Created December 15, 2015 19:18
failing example in launch-testing with coroutine
# 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/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,