screen 0 zsh -is eval 'roscore'
screen 1 zsh -is eval 'roslaunch --wait wild_thumper wild_thumper.launch'
screen 2 zsh -is eval 'roslaunch --wait wild_thumper teleop.launch'
-#screen 3 zsh -is eval 'rosrun wild_thumper sensor_board.py'
#screen 3 zsh -is eval 'roslaunch --wait wild_thumper move_base.launch nomap:=true'
select 2
#!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
+import sys
import rospy
import struct
import prctl
from wild_thumper.msg import Sensor
# Board warming offset
-TEMP_ERROR = 0 # -5 # degree celsius
+TEMP_ERROR = 0 # -2.5 # -5 # degree celsius
PRESSURE_ERROR = -2.5
"""
def __init__(self):
rospy.init_node('sensor_board')
prctl.set_name("sensor_board")
+ try:
+ get()
+ except:
+ print >>sys.stderr, "No sensor board, shutting down"
+ exit(1)
self.pub = rospy.Publisher("sensors", Sensor, queue_size=16)
self.run()