6 import roslib; roslib.load_manifest(
"laser_assembler");
17 lower_threshold =
None 18 upper_threshold =
None 22 rospy.init_node(
'tilt_laser_assembler')
23 self.
joint_name = rospy.get_param(
"~tilt_joint_name",
"tilt_joint")
24 self.
cloud_pub = rospy.Publisher(
'assemble_cloud', sensor_msgs.msg.PointCloud2)
25 self.
command_pub = rospy.Publisher(
'/tilt_controller/command', std_msgs.msg.Float64)
27 self.
assemble_srv = rospy.ServiceProxy(
'assemble_scans2', AssembleScans2)
30 self.
max_angle = rospy.get_param(
'~tilt_joint_max_angle', default=0.70)
33 self.
min_angle = rospy.get_param(
'~tilt_joint_min_angle',default=-0.95)
42 self.command_pub.publish(std_msgs.msg.Float64(angle))
47 pos = msg.position[msg.name.index(self.
joint_name)]
48 rospy.logdebug(
'pos = %f'%pos)
51 rospy.logdebug(
'exept')
79 req = AssembleScans2Request()
85 rospy.logdebug(
'publish')
86 self.cloud_pub.publish(ret.cloud)
89 rospy.logerr(
'error calling service')
94 if __name__==
'__main__':
def scan_and_publish(self, begin, end)
def move_to_angle(self, angle)
def joint_callback(self, msg)