mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-28 07:59:32 +00:00
Ros logging fixes...
This commit is contained in:
@@ -16,7 +16,6 @@ parent_dir = os.path.dirname(current_dir)
|
||||
sys.path.insert(0, parent_dir)
|
||||
|
||||
import messaging_lib as messaging
|
||||
import ros_logging
|
||||
|
||||
logging.basicConfig( # TODO all prints as logs
|
||||
level=logging.DEBUG, # INFO
|
||||
@@ -24,7 +23,6 @@ logging.basicConfig( # TODO all prints as logs
|
||||
handlers=[
|
||||
logging.FileHandler("client_logs.log"),
|
||||
logging.StreamHandler(),
|
||||
ros_logging.RosHandler(),
|
||||
])
|
||||
|
||||
ConfigOption = collections.namedtuple("ConfigOption", ["section", "option", "value"])
|
||||
|
||||
@@ -8,6 +8,8 @@ from FlightLib import LedLib
|
||||
import client
|
||||
import messaging_lib as messaging
|
||||
import play_animation
|
||||
import ros_logging
|
||||
|
||||
|
||||
|
||||
class CopterClient(client.Client):
|
||||
@@ -73,5 +75,6 @@ def _command_takeoff(*args, **kwargs):
|
||||
|
||||
if __name__ == "__main__":
|
||||
rospy.init_node('Swarm_client', anonymous=True)
|
||||
ros_logging.route_logger_to_ros("client")
|
||||
copter_client = CopterClient()
|
||||
copter_client.start()
|
||||
|
||||
Reference in New Issue
Block a user