Open Analtino2021 opened 2 years ago
Hi,
This is a better way to write an issue:
The problem is here:
This is my code:
# ---------------------------------------
# --- INITIALIZATION Read data from file
# ---------------------------------------
# Loads a json file containing the detections. Returned json_file has path resolved by urireader.
dataset, json_file = loadResultsJSON(args['json_file'], args['collection_selection_function'])
# ---------------------------------------
# --- Filter some collections and / or sensors from the dataset
# ---------------------------------------
dataset = filterCollectionsFromDataset(dataset, args) # filter collections
When I run the code with:
roslaunch mmtbot_calibration playbag.launch
The result is:
... logging to /home/mike/.ros/log/10c50ae0-5a92-11ec-97fb-1bc17e6b9bb3/roslaunch-ZB-33309.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
WARNING: disk usage in log directory [/home/mike/.ros/log] is over 1GB.
It's recommended that you use the 'rosclean' command.
Using load_yaml() directly is deprecated. Use xacro.load_yaml() instead.
Using load_yaml() directly is deprecated. Use xacro.load_yaml() instead.
Using load_yaml() directly is deprecated. Use xacro.load_yaml() instead.
Using load_yaml() directly is deprecated. Use xacro.load_yaml() instead.
started roslaunch server http://ZB:42353/
SUMMARY
========
PARAMETERS
* /robot_description: <?xml version="1....
* /rosdistro: noetic
* /rosversion: 1.15.13
* /use_sim_time: True
NODES
/
robot_state_publisher (robot_state_publisher/robot_state_publisher)
rosbag_play (rosbag/play)
rviz (rviz/rviz)
auto-starting new master
process[master]: started with pid [33387]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 10c50ae0-5a92-11ec-97fb-1bc17e6b9bb3
process[rosout-1]: started with pid [33431]
started core service [/rosout]
process[robot_state_publisher-2]: started with pid [33434]
process[rosbag_play-3]: started with pid [33438]
process[rviz-4]: started with pid [33440]
[ INFO] [1639234394.697254763]: Opening /home/mike/bagfiles/mmtbot/test_rgbd.bag
Waiting 2 seconds after advertising topics...qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
done.
Hit space to toggle paused, or 's' to step.
[rviz-4] killing on exit 744.147861 Duration: 2.369861 / 11.654000
[rosbag_play-3] killing on exit
[robot_state_publisher-2] killing on exit
[RUNNING] Bag Time: 744.433077 Duration: 2.655077 / 11.654000
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
good afternoon teacher I'm trying to use a function that can choose the sensor to use from the dataset but it always gives me an error, the function is called by an argparser that I can't understand what it does. here is the argparser
and here is the function thath i'm traing to call
in this my code:
but it keeps giving me the folowing error:![novo](https://user-images.githubusercontent.com/92738054/145680121-d73c680b-c647-410f-98ba-406d5185a931.png)
and i already verifid that the kee exists manking:
and the result was: