Skip to content

Instantly share code, notes, and snippets.

cmake_minimum_required(VERSION 2.8.3)
project(beginner_tutorials)
## Find catkin and system dependencies
## Find catkin and any catkin packages on which
## this package depends at build time
find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs)
## System dependencies are found with CMake's conventions
chadrockey@rlu:/wg/stor5/chadrockey/catkin_ws$ catkin_make
Base path: /wg/stor5/chadrockey/catkin_ws
Source space: /wg/stor5/chadrockey/catkin_ws/src
Build space: /wg/stor5/chadrockey/catkin_ws/build
Devel space: /wg/stor5/chadrockey/catkin_ws/devel
Install space: /wg/stor5/chadrockey/catkin_ws/install
####
#### Running command: "cmake /wg/stor5/chadrockey/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/wg/stor5/chadrockey/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/wg/stor5/chadrockey/catkin_ws/install" in "/wg/stor5/chadrockey/catkin_ws/build"
####
-- The C compiler identification is GNU
@chadrockey
chadrockey / range_pub.py
Created November 20, 2012 21:57
Python range publisher
#!/usr/bin/env python
import roslib; roslib.load_manifest('rviz')
import rospy
from sensor_msgs.msg import Range
def talker():
pub = rospy.Publisher('range', Range)
rospy.init_node('talker')
ranges = [float('NaN'), 1.0, -float('Inf'), 3.0, float('Inf')]
min_range = 2.0