Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Development Into Master (Issues fixed) #20

Merged
merged 3 commits into from
Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,6 @@ find_package(catkin REQUIRED COMPONENTS
message_generation
)

## Generate messages in the 'data/ros_msgs' folder
add_message_files(
DIRECTORY
data/ros_msgs
FILES
Robot_Event.msg
CB_Event.msg
)

## Generate services in the 'data/ros_service_info' folder
add_service_files(
DIRECTORY
data/ros_service_info
FILES
FIROS_Info.srv
)

## Generate messages which firos depends on
generate_messages(
DEPENDENCIES
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ Dominik Lux, Peter Detzner
FIROS-Helping Robots to be Context Aware
([Slideshare](https://de.slideshare.net/FI-WARE/fiware-global-summit-FIROS-helping-robots-to-be-context-aware),
28.11.2018 FIWARE Global Summit, Malaga)

FIROS-Helping Robots to be Context Aware II
([Slideshare](https://de.slideshare.net/FI-WARE/fiware-global-summit-firos-making-robots-context-aware),
21.05.2019 FIWARE Global Summit, Genova)
8 changes: 0 additions & 8 deletions data/ros_msgs/CB_Event.msg

This file was deleted.

8 changes: 0 additions & 8 deletions data/ros_msgs/Robot_Event.msg

This file was deleted.

16 changes: 0 additions & 16 deletions data/ros_service_info/FIROS_Info.srv

This file was deleted.

6 changes: 1 addition & 5 deletions firos/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@
from include import confManager
from include.logger import Log, initLog
from include.server.firosServer import FirosServer

from include.ros.topicHandler import RosTopicHandler, loadMsgHandlers, createConnectionListeners, initPubAndSub
from include.rcm.topicManager import TopicManager


# Overwrite global variables with command line arguments (iff set)
if results.port is not None:
Expand All @@ -109,7 +107,6 @@
Log("INFO", "Initialized")


toMa = TopicManager()

try:
server = FirosServer("0.0.0.0", C.MAP_SERVER_PORT)
Expand All @@ -119,7 +116,6 @@
def signal_handler(signal, frame):
Log("INFO", ('\nExiting from the application'))
RosTopicHandler.unregisterAll()
toMa.removeListeners()
server.close()
Log("INFO", ('\nExit'))
sys.exit(0)
Expand Down
2 changes: 1 addition & 1 deletion firos/include/FiwareObjectConverter
9 changes: 6 additions & 3 deletions firos/include/confManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ def getRobots(refresh=False):
robots we might send a lot of data.
'''
try:
#Retrieves the whitelist.json. If it does not exists, it returns all topics.
# Retrieves the whitelist.json. If it does not exists, it returns all topics.
robots = copy.deepcopy(RosConfigurator.systemTopics(refresh))
#Retrieves the robots.json.

# Retrieves the robots.json.
robots_json = getRobotsByJson()
if len(robots_json) == 0:
Log("ERROR", "The file 'robots.json' is either empty or does not exist!\n\nExiting")
Expand All @@ -52,10 +53,12 @@ def getRobots(refresh=False):
for topic_name in robots_json[robot_name]["topics"]:
topic = robots_json[robot_name]["topics"][topic_name]

# Overwrite or add!
robots[robot_name]["topics"][str(topic_name)] = {
"msg": str(topic["msg"]) if type(topic["msg"]) is str else topic["msg"],
"msg": str(topic["msg"]),
"type": str(topic["type"])
}

return robots

except Exception as e:
Expand Down
17 changes: 0 additions & 17 deletions firos/include/rcm/__init__.py

This file was deleted.

25 changes: 0 additions & 25 deletions firos/include/rcm/rcmutils.py

This file was deleted.

78 changes: 0 additions & 78 deletions firos/include/rcm/topicManager.py

This file was deleted.

Loading