Skip to content
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
4 changes: 3 additions & 1 deletion src/hovermap_api/scripts/configure_perception
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ def get_perception_config() -> str:

if __name__ == "__main__":
rospy.init_node("hovermap_api_config")
pub = rospy.Publisher("cortex/occupancy_grid_map/configuration", String, queue_size=10)
pub = rospy.Publisher(
"cortex/occupancy_grid_map/configuration", String, queue_size=10
)
msg = String()
msg.data = get_perception_config()
pub.publish(msg)
Expand Down
11 changes: 10 additions & 1 deletion src/mule_bridge/mule_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ catkin_package()
catkin_install_python(PROGRAMS scripts/mule_bridge DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

if(CATKIN_ENABLE_TESTING)
catkin_add_nosetests(tests)

SET(PYTHON_TEST_TARGETS
Comment thread
glennswagner marked this conversation as resolved.
tests/test_database.py
tests/test_history.py
tests/test_protocol.py
)

foreach(TEST_TARGET ${PYTHON_TEST_TARGETS})
catkin_add_nosetests(${TEST_TARGET})
endforeach()

find_package(rostest REQUIRED)
add_rostest(tests/test_bridge.test)
Expand Down
2 changes: 1 addition & 1 deletion src/mule_bridge/mule_bridge/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from distutils.core import setup
from setuptools import setup

from catkin_pkg.python_setup import generate_distutils_setup

Expand Down
6 changes: 0 additions & 6 deletions src/mule_bridge/mule_bridge/tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,3 @@ def test(self):
),
2.0,
)


if __name__ == "__main__":
import rosunit

rosunit.unitrun("test_mule_bridge", "test_database", TestDatabase)
8 changes: 1 addition & 7 deletions src/mule_bridge/mule_bridge/tests/test_history.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

import mule_bridge
import mule_bridge # TODO FIX me tests fail to find zmq
Comment thread
glennswagner marked this conversation as resolved.


def size(blobs):
Expand Down Expand Up @@ -108,9 +108,3 @@ def test(self):
),
2.0,
)


if __name__ == "__main__":
import rosunit

rosunit.unitrun("test_mule_bridge", "test_history", TestHistory)
6 changes: 0 additions & 6 deletions src/mule_bridge/mule_bridge/tests/test_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,3 @@ def test(self):
mule_bridge.loads_sync_reply(mule_bridge.dumps_sync_reply(sync_reply)),
sync_reply,
)


if __name__ == "__main__":
import rosunit

rosunit.unitrun("test_mule_bridge", "test_protocol", TestProtocol)
Loading