parameters: (topic,klampt_object,convert_kwargs=None,**kwargs)
return_statement: return publisher(topic,_compatibleKlamptType(klampt_object),convert_kwargs,ros_type,**kwargs)
docstring: Convenience function.  If klampt_object is an object, this sets up
      the publisher to be of the correct type.  You can then call publish on
      the returned publisher  using the same klampt_object (or another
      compatible Klampt object).
  
      SimRobotSensors (particularly, cameras) can be published to multiple
      topics of the form [topic]/[subtopic].
  
      Returns:
          KlamptROSPublisher
docstring_summary: Convenience function.  If klampt_object is an object, this sets up
      the publisher to be of the correct type.  You can then call publish on
      the returned publisher  using the same klampt_object (or another
      compatible Klampt object).
docstring_tokens: Convenience function . If klampt_object is an object this sets up the publisher to be of the correct type . You can then call publish on the returned publisher using the same klampt_object ( or another compatible Klampt object ) .
function: def object_publisher(topic,klampt_object,convert_kwargs=None,**kwargs):
      """Convenience function.  If klampt_object is an object, this sets up
      the publisher to be of the correct type.  You can then call publish on
      the returned publisher  using the same klampt_object (or another
      compatible Klampt object).
  
      SimRobotSensors (particularly, cameras) can be published to multiple
      topics of the form [topic]/[subtopic].
  
      Returns:
          KlamptROSPublisher
      """
      from klampt import SimRobotSensor,Geometry3D
      if isinstance(klampt_object,SimRobotSensor):
          return publisher_SimRobotSensor(topic,klampt_object,convert_kwargs,**kwargs)
      ros_type = None
      if isinstance(klampt_object,Geometry3D):
          if klampt_object.type() == 'PointCloud':
              ros_type = 'PointCloud2'
          elif klampt_object.type() == 'TriangleMesh':
              ros_type = 'TriangleMesh'
          else:
              raise ValueError("Implicit surfaces, geometric primitives, and groups not supported yet")        
      return publisher(topic,_compatibleKlamptType(klampt_object),convert_kwargs,ros_type,**kwargs)
function_tokens: def object_publisher ( topic , klampt_object , convert_kwargs = None , * * kwargs ) : from klampt import SimRobotSensor , Geometry3D if isinstance ( klampt_object , SimRobotSensor ) : return publisher_SimRobotSensor ( topic , klampt_object , convert_kwargs , * * kwargs ) ros_type = None if isinstance ( klampt_object , Geometry3D ) : if klampt_object . type ( ) == 'PointCloud' : ros_type = 'PointCloud2' elif klampt_object . type ( ) == 'TriangleMesh' : ros_type = 'TriangleMesh' else : raise ValueError ( "Implicit surfaces, geometric primitives, and groups not supported yet" ) return publisher ( topic , _compatibleKlamptType ( klampt_object ) , convert_kwargs , ros_type , * * kwargs )