Closed ivanperez-keera closed 8 months ago
I used juicer to generate a combined.sqlite
file and adjusted the cfe_plugin_config.yaml
accordingly. Now I am seeing:
# ros2 launch cfe_plugin cfe_bridge.launch.py
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-03-05-02-58-18-570194-000eb8a29f9e-431
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [fsw_ros2_bridge-1]: process started with pid [432]
[fsw_ros2_bridge-1] [INFO] [1709607499.197213624] [cfe_bridge]: namespace: /groundsystem
[fsw_ros2_bridge-1] [WARN] [1709607499.198452659] [cfe_bridge]: ================================================================
[fsw_ros2_bridge-1] [WARN] [1709607499.200208767] [cfe_bridge]: Using FSW Plugin: cfe_plugin.cfe_plugin
[fsw_ros2_bridge-1] [WARN] [1709607499.202070478] [cfe_bridge]: ================================================================
[fsw_ros2_bridge-1] [INFO] [1709607499.233839630] [cfe_bridge]: Setting up cFE plugin
[fsw_ros2_bridge-1] [WARN] [1709607499.378708991] [cfe_bridge]: Can't replace CFE_ES_CDS_AccessCacheData with CFE_ES_CDS_AccessCache
[fsw_ros2_bridge-1] [WARN] [1709607499.380261452] [cfe_bridge]: wrong size 72 vs 96
[fsw_ros2_bridge-1] [WARN] [1709607499.382781711] [cfe_bridge]: Can't replace CFE_ES_CDS_AccessCacheData with CFE_ES_CDS_AccessCache
[fsw_ros2_bridge-1] [WARN] [1709607499.384467950] [cfe_bridge]: wrong size 72 vs 96
[fsw_ros2_bridge-1] [WARN] [1709607499.509499200] [cfe_bridge]: Can't replace CFE_SB_MsgMapFileEntry_t with CFE_SB_Msg
[fsw_ros2_bridge-1] [WARN] [1709607499.511347771] [cfe_bridge]: wrong size 8 vs 16
[fsw_ros2_bridge-1] [WARN] [1709607499.840415261] [cfe_bridge]: Can't replace CF_ChunkIdx_t with CF_Chunk
[fsw_ros2_bridge-1] [WARN] [1709607499.842070089] [cfe_bridge]: wrong size 4 vs 8
[fsw_ros2_bridge-1] [WARN] [1709607499.844687113] [cfe_bridge]: Can't replace CF_ChunkIdx_t with CF_Chunk
[fsw_ros2_bridge-1] [WARN] [1709607499.846242834] [cfe_bridge]: wrong size 4 vs 8
[fsw_ros2_bridge-1] [WARN] [1709607499.848810643] [cfe_bridge]: Can't replace CF_ChunkOffset_t with CF_Chunk
[fsw_ros2_bridge-1] [WARN] [1709607499.850366745] [cfe_bridge]: wrong size 4 vs 8
[fsw_ros2_bridge-1] [WARN] [1709607499.852985311] [cfe_bridge]: Can't replace CF_ChunkOffset_t with CF_Chunk
[fsw_ros2_bridge-1] [WARN] [1709607499.854566314] [cfe_bridge]: wrong size 4 vs 8
[fsw_ros2_bridge-1] [WARN] [1709607499.857135525] [cfe_bridge]: Can't replace CF_ChunkSize_t with CF_Chunk
[fsw_ros2_bridge-1] [WARN] [1709607499.858756901] [cfe_bridge]: wrong size 4 vs 8
[fsw_ros2_bridge-1] [WARN] [1709607499.861399815] [cfe_bridge]: Can't replace CF_ChunkSize_t with CF_Chunk
[fsw_ros2_bridge-1] [WARN] [1709607499.862951278] [cfe_bridge]: wrong size 4 vs 8
[fsw_ros2_bridge-1] [WARN] [1709607499.866546159] [cfe_bridge]: Can't replace CF_ChunkList_t with CF_Chunk
[fsw_ros2_bridge-1] [WARN] [1709607499.868260880] [cfe_bridge]: wrong size 16 vs 8
[fsw_ros2_bridge-1] [WARN] [1709607499.878243191] [cfe_bridge]: Can't replace CF_Logical_TlvData with CF_Logical_Tlv
[fsw_ros2_bridge-1] [WARN] [1709607499.879883745] [cfe_bridge]: wrong size 8 vs 16
[fsw_ros2_bridge-1] [WARN] [1709607499.882640208] [cfe_bridge]: Can't replace CF_Logical_TlvData with CF_Logical_Tlv
[fsw_ros2_bridge-1] [WARN] [1709607499.884304698] [cfe_bridge]: wrong size 8 vs 16
[fsw_ros2_bridge-1] [WARN] [1709607499.890734841] [cfe_bridge]: Can't replace CF_Logical_TlvList_t with CF_Logical_Tlv
[fsw_ros2_bridge-1] [WARN] [1709607499.892502219] [cfe_bridge]: wrong size 72 vs 16
[fsw_ros2_bridge-1] [WARN] [1709607499.921527581] [cfe_bridge]: Can't replace CF_ChunkWrapper_t with CF_Chunk
[fsw_ros2_bridge-1] [WARN] [1709607499.923269346] [cfe_bridge]: wrong size 32 vs 8
[fsw_ros2_bridge-1] [WARN] [1709607499.981466350] [cfe_bridge]: Can't replace CF_PlaybackDirCmd_t with CF_Playback
[fsw_ros2_bridge-1] [WARN] [1709607499.983608751] [cfe_bridge]: wrong size 144 vs 148
[fsw_ros2_bridge-1] [WARN] [1709607499.986623671] [cfe_bridge]: Can't replace CF_PlaybackDirCmd_t with CF_Playback
[fsw_ros2_bridge-1] [WARN] [1709607499.988608087] [cfe_bridge]: wrong size 144 vs 148
[fsw_ros2_bridge-1] [WARN] [1709607499.991486323] [cfe_bridge]: Can't replace CF_TransactionCmd_t with CF_Transaction
[fsw_ros2_bridge-1] [WARN] [1709607499.993349485] [cfe_bridge]: wrong size 20 vs 136
[fsw_ros2_bridge-1] [INFO] [1709607500.018752584] [cfe_bridge]: udp_receive_port: 1235
[fsw_ros2_bridge-1] [INFO] [1709607500.020738548] [cfe_bridge]: udp_send_port: 1234
[fsw_ros2_bridge-1] [INFO] [1709607500.022635161] [cfe_bridge]: udp_telemetry_ip: 0.0.0.0
[fsw_ros2_bridge-1] [INFO] [1709607500.024540933] [cfe_bridge]: udp_command_ip: 127.0.0.1
[fsw_ros2_bridge-1] [INFO] [1709607500.026198392] [cfe_bridge]: parsing cFE config file...
[fsw_ros2_bridge-1] [INFO] [1709607500.179278774] [cfe_bridge]: commands:
[fsw_ros2_bridge-1] [INFO] [1709607500.182554333] [cfe_bridge]: telemetry:
[fsw_ros2_bridge-1] [INFO] [1709607500.184792393] [cfe_bridge]: starting timer thread to receive CFS telemetry
[fsw_ros2_bridge-1] [WARN] [1709607500.187153614] [cfe_bridge]: cmd with msg_size=0 (dynamic)
[fsw_ros2_bridge-1] [WARN] [1709607500.188803421] [cfe_bridge]: cmd with msg_size=0 (dynamic)
[fsw_ros2_bridge-1] Traceback (most recent call last):
[fsw_ros2_bridge-1] File "/root/code/humble_ws/brash/install/fsw_ros2_bridge/lib/fsw_ros2_bridge/fsw_ros2_bridge", line 33, in <module>
[fsw_ros2_bridge-1] sys.exit(load_entry_point('fsw-ros2-bridge', 'console_scripts', 'fsw_ros2_bridge')())
[fsw_ros2_bridge-1] File "/root/code/humble_ws/brash/build/fsw_ros2_bridge/fsw_ros2_bridge/fsw_ros2_bridge.py", line 419, in main
[fsw_ros2_bridge-1] bridge = FSWBridge()
[fsw_ros2_bridge-1] File "/root/code/humble_ws/brash/build/fsw_ros2_bridge/fsw_ros2_bridge/fsw_ros2_bridge.py", line 72, in __init__
[fsw_ros2_bridge-1] self._fsw = fsw_ros2_bridge.fsw_wrapper.FSWWrapper(self, self._plugin_name)
[fsw_ros2_bridge-1] File "/root/code/humble_ws/brash/build/fsw_ros2_bridge/fsw_ros2_bridge/fsw_wrapper.py", line 37, in __init__
[fsw_ros2_bridge-1] self._plugin = importlib.import_module(plugin, ".").FSWPlugin(node)
[fsw_ros2_bridge-1] File "/root/code/humble_ws/brash/install/cfe_plugin/local/lib/python3.10/dist-packages/cfe_plugin/cfe_plugin.py", line 152, in __init__
[fsw_ros2_bridge-1] msg_size = symbol_name_map[ci.get_msg_type()].get_size()
[fsw_ros2_bridge-1] KeyError: 'RoverAppTwistCmdt'
[ERROR] [fsw_ros2_bridge-1]: process has died [pid 432, exit code 1, cmd '/root/code/humble_ws/brash/install/fsw_ros2_bridge/lib/fsw_ros2_bridge/fsw_ros2_bridge --ros-args -r __node:=cfe_bridge --params-file /root/code/humble_ws/brash/install/cfe_plugin/share/cfe_plugin/config/cfe_config.yaml --params-file /root/code/humble_ws/brash/install/juicer_util/share/juicer_util/config/cfe_plugin_config.yaml'].
Hi Ivan, couple of things:
The rover reference: Thanks for discovering a buggy commit. That database was supposed to be part of a branch in cfe_ros2_plugin for a tutorial I am adding today. I didn't realize I inadvertently pushed it to devel, will fix it this morning. Apologies about that one.
To explain a bit more: The Rover demo is adding a few new message types, which are expected by the bridge (which is told "what to expect" from a configuration .yaml file).
Will post a message again here once I delete the reference to the rover and set up the database back to its original.
Thank you so much, @ana-GT. Looking forward to trying this!
Hi @ivanperez-keera , so heads-up, fixed the issue and just tested the tutorials (both using a local setup or the docker setup), so things should work as expected. Thanks for the heads-up.
I just tried it again. I also tried in docker, but I'm not able to see any data going through. I just sent you an email to discuss separately.
Mm, not sure what might be going on. We have it running with 4 different users :thinking: .
For reference, since I mentioned it earlier in this Issue, I added a rover demo that runs in docker as well: https://traclabs-brash.bitbucket.io/brash_docker_rover_demo.html
Ok I'll try that with docker and we can discuss.
Hi,
I followed your instructions and I'm stuck at the following step:
It's not finding a resource DB file.
I looked into that file
/root/code/humble_ws/brash/install/juicer_util/share/juicer_util/config/cfe_plugin_config.yaml
and that's pointing to/code/juicer/dbs/rover_all.sqlite
, which does not exist on my machine. I replaced that with:which is commented out, and that now gives the following error message:
What needs to happen? Is there a valid sqlite file that can be used just to test the bridge?