Skip to content

Commit

Permalink
Merge pull request #42 from 5G-ERA/klepo
Browse files Browse the repository at this point in the history
feat: fixed logging in server
  • Loading branch information
Kapim authored Feb 29, 2024
2 parents f4b329c + c91fc7a commit cad6f1a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion era_5g_relay_network_application/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ def main(args=None) -> None:

node.get_logger().debug(f"Loaded outgoing topics: {topics_outgoing_list}")
node.get_logger().debug(f"Loaded incoming topics: {topics_incoming_list}")

node.get_logger().debug(f"Loaded outgoing services: {services}")

global client
Expand Down
4 changes: 4 additions & 0 deletions era_5g_relay_network_application/server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os
import sys
import threading
from functools import partial
from multiprocessing import Queue
Expand Down Expand Up @@ -33,6 +34,9 @@
from era_5g_relay_network_application.worker_tf import WorkerTF
from era_5g_server.server import NetworkApplicationServer

logging.basicConfig(stream=sys.stdout, level=logging.INFO)
logger = logging.getLogger("relay server python")

# port of the netapp's server
NETAPP_PORT = int(os.getenv("NETAPP_PORT", 5896))

Expand Down
4 changes: 2 additions & 2 deletions set_env_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export NETAPP_ADDRESS=http://127.0.0.1:5897
#export NETAPP_ADDRESS=http://192.168.206.50:5897

# Set environment variables (input, images)
export TOPICS_TO_SERVER='[{"name":"/image_raw","type":"sensor_msgs/Image"}]'
export TOPICS_FROM_SERVER='[{"name":"/res","type":"std_msgs/String"}]'
export TOPICS_TO_SERVER='[{"name":"/image_raw", "type":"sensor_msgs/Image", "compression": "hevc"}]'
export TOPICS_FROM_SERVER='[{"name":"/res", "type":"std_msgs/String"}]'
#export SERVICES_TO_SERVER='[{"name":"/fcw_service_node/set_parameters_atomically",
# "type":"rcl_interfaces/srv/SetParametersAtomically"}]'
export EXTENDED_MEASURING=True
Expand Down
4 changes: 2 additions & 2 deletions set_env_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export ROS_DOMAIN_ID=1
export NETAPP_PORT=5897

# Set environment variables (results, string)
export TOPICS_TO_CLIENT='[{"name":"/res","type":"std_msgs/String"}]'
export TOPICS_FROM_CLIENT='[{"name":"/image_raw","type":"sensor_msgs/Image"}]'
export TOPICS_TO_CLIENT='[{"name":"/res", "type":"std_msgs/String"}]'
export TOPICS_FROM_CLIENT='[{"name":"/image_raw", "type":"sensor_msgs/Image", "compression": "hevc"}]'
#export SERVICES_FROM_CLIENT='[{"name":"/fcw_service_node/set_parameters_atomically",
# "type":"rcl_interfaces/srv/SetParametersAtomically"}]'
export EXTENDED_MEASURING=True
Expand Down

0 comments on commit cad6f1a

Please sign in to comment.