Skip to content

Instantly share code, notes, and snippets.

@aaronchongth
aaronchongth / demo.launch
Created May 19, 2019 07:30
MoveIt! CHOMP planning adapter with OMPL
aaron@ws:~/scratch/moveit_ws$ roslaunch panda_moveit_config demo.launch
... logging to /home/aaron/.ros/log/a5f6c914-7a07-11e9-86c0-7c67a2ef3c4c/roslaunch-ws-18017.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
xacro: in-order processing became default in ROS Melodic. You can drop the option.
xacro: in-order processing became default in ROS Melodic. You can drop the option.
xacro: in-order processing became default in ROS Melodic. You can drop the option.
started roslaunch server http://ws:41395/
@aaronchongth
aaronchongth / gist:1888715072e92b0dbc29d2107ca9d2ee
Created September 4, 2019 09:39
Turtlebot3 - ROS2 Dashing - Navigation 2 bringup - Rviz2 issues
aaron@elite:~/turtlebot3/turtlebot3_ws$ ros2 launch turtlebot3_navigation2 navigation2.launch.py map:=/home/aaron/turtlebot3/maps/office/map.yaml
[INFO] [launch]: All log files can be found below /home/aaron/.ros/log/2019-09-04-16-16-40-762722-elite-32126
[INFO] [launch]: Default logging verbosity is set to INFO
567585001.059015 [0] ros2: using network interface enp42s0 (udp/192.168.0.130) selected arbitrarily from: enp42s0, docker0
[INFO] [lifecycle_manager-1]: process started with pid [32153]
[INFO] [map_server-2]: process started with pid [32154]
[INFO] [amcl-3]: process started with pid [32155]
[INFO] [world_model-4]: process started with pid [32156]
[INFO] [dwb_controller-5]: process started with pid [32165]
[INFO] [navfn_planner-6]: process started with pid [32167]
aaron@biryani:~/workspaces/editor_ws$ ./install/traffic_editor/bin/traffic-editor
Gtk-Message: 16:01:50.498: GtkDialog mapped without a transient parent. This is discouraged.
nothing to draw!
Project::save_yaml_file()
Building::save_yaml()
Building::load_yaml_file(test.building.yaml)
Gtk-Message: 16:02:38.803: GtkDialog mapped without a transient parent. This is discouraged.
couldn't parse test.building.yaml: yaml-cpp: error at line 0, column 0: bad fileProject::save_yaml_file()
Building::save_yaml(test.building.yaml)
^C
aaron@ws:~/scratch/demo_ws$ ros2 launch demos airport_terminal.launch.xml
[INFO] [launch]: All log files can be found below /home/aaron/.ros/log/2020-03-11-23-50-27-894510-ws-18688
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): "package 'joy' not found, searching: ['/home/aaron/scratch/demo_ws/install/demos', '/home/aaron/scratch/demo_ws/install/visualizer', '/home/aaron/scratch/demo_ws/install/rviz2_plugin', '/home/aaron/scratch/demo_ws/install/rmf_workcell_msgs', '/home/aaron/scratch/demo_ws/install/rmf_schedule_visualizer', '/home/aaron/scratch/demo_ws/install/rmf_fleet_adapter', '/home/aaron/scratch/demo_ws/install/rmf_traffic_ros2', '/home/aaron/scratch/demo_ws/install/rmf_traffic', '/home/aaron/scratch/demo_ws/install/rmf_utils', '/home/aaron/scratch/demo_ws/install/fleet_state_visualizer', '/home/aaron/scratch/demo_ws/install/rmf_traffic_msgs', '/home/aaron/scratch/demo_ws/install/rmf_rviz_plugin', '/home/aaron/scratch/
aaron@ws:~/workspaces/demos_ws$ ros2 launch demos office.launch.xml
[INFO] [launch]: All log files can be found below /home/aaron/.ros/log/2020-03-13-13-12-47-016239-ws-14294
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [rmf_traffic_schedule-1]: process started with pid [14312]
[INFO] [building_map_server-2]: process started with pid [14313]
[INFO] [rviz2-3]: process started with pid [14314]
[INFO] [fleet_state_visualizer-4]: process started with pid [14315]
[INFO] [rviz2-5]: process started with pid [14316]
[INFO] [door_supervisor-6]: process started with pid [14319]
[INFO] [gzserver-7]: process started with pid [14325]
aaron@ws:~/rmf_demos_ws$ source install/setup.bash
aaron@ws:~/rmf_demos_ws$ ros2 launch demos office.launch.xml
[INFO] [launch]: All log files can be found below /home/aaron/.ros/log/2020-04-01-01-25-13-948663-ws-28733
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [rmf_traffic_schedule-1]: process started with pid [28751]
[INFO] [building_map_server-2]: process started with pid [28752]
[INFO] [rviz2-3]: process started with pid [28753]
[INFO] [fleet_state_visualizer-4]: process started with pid [28754]
[INFO] [rviz2-5]: process started with pid [28755]
[INFO] [door_supervisor-6]: process started with pid [28759]
@aaronchongth
aaronchongth / gist:2a905b28ecd79503c54be0dd5d5f99dc
Created May 26, 2020 04:23
Running `pit_crew` `usage_examples.py`
aaron@ws:~/workspaces/pitcrew_ws/src/traffic_editor/building_map_tools/pit_crew$ python3 usage_examples.py
Welcome to
( ( (
)⧹ ))⧹ ) . ) ( )⧹ ) ( (
(()/(()/` ) /( )⧹ (()/(( )⧹))( .
/(_)/(_)( )(_)) (((_) /(_))⧹ ((_)()⧹ )
(_))(_))(_(_()) )⧹___(_))((_)_(())⧹_)()
| _ |_ _|_ _| (/ __| _ | __⧹ ⧹((_)/ /
| _/| | | | | (__| | _| ⧹ ⧹/⧹/ /
@aaronchongth
aaronchongth / gist:74c9641202dbdc4e60142a8547449a1f
Created April 7, 2021 01:52
Output of modified parser_TEST.cc
aaron@biryani:~/workspaces/sdf$ ./build/sdformat11/src/UNIT_parser_TEST
[==========] Running 12 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 11 tests from Parser
[ RUN ] Parser.initStringTrim
[ OK ] Parser.initStringTrim (0 ms)
[ RUN ] Parser.CustomUnknownElements
[ OK ] Parser.CustomUnknownElements (25 ms)
[ RUN ] Parser.ReusedSDFVersion
Warning [Utils.cc:110] SDF Element[initial_position] is deprecated
aaron@biryani:~/workspaces/rmf$ ./build/rmf_battery/test_rmf_battery
==================
WARNING: ThreadSanitizer: data race (pid=222783)
Write of size 4 at 0x55eed75ff2f8 by thread T1:
#0 thread_fn() /home/aaron/workspaces/rmf/src/rmf/rmf_battery/rmf_battery/test/unit/agv/test_Race.cpp:8 (test_rmf_battery+0xd70ec)
#1 void std::__invoke_impl<void, void (*&)()>(std::__invoke_other, void (*&)()) /usr/include/c++/9/bits/invoke.h:60 (test_rmf_battery+0xd7262)
#2 std::__invoke_result<void (*&)()>::type std::__invoke<void (*&)()>(void (*&)()) /usr/include/c++/9/bits/invoke.h:95 (test_rmf_battery+0xd7262)
#3 void std::_Bind<void (*())()>::__call<void>(std::tuple<>&&, std::_Index_tuple<>) /usr/include/c++/9/functional:400 (test_rmf_battery+0xd7262)
#4 void std::_Bind<void (*())()>::operator()<, void>() /usr/include/c++/9/functional:484 (test_rmf_battery+0xd7262)
#5 void std::__invoke_impl<void, std::_Bind<void (*())()>>(std::__invoke_other, std::_Bind<void (*())()>&&) /usr/include/c++/9/bits
aaron@biryani:~/workspaces/rmf$ ./build/rmf_traffic/test_rmf_traffic
==================
WARNING: ThreadSanitizer: data race (pid=225052)
Read of size 1 at 0x7b080002deb0 by thread T1:
#0 operator() /home/aaron/workspaces/rmf/src/rmf/rmf_traffic/rmf_traffic/src/rmf_traffic/agv/Planner.cpp:240 (librmf_traffic.so+0xe6764)
#1 _M_invoke /usr/include/c++/9/bits/std_function.h:285 (librmf_traffic.so+0xe6764)
#2 std::function<bool ()>::operator()() const /usr/include/c++/9/bits/std_function.h:688 (librmf_traffic.so+0x15e00b)
#3 rmf_traffic::agv::planning::ScheduledDifferentialDriveExpander::quit(std::shared_ptr<rmf_traffic::agv::planning::ScheduledDifferentialDriveExpander::SearchNode> const&, std::priority_queue<std::shared_ptr<rmf_traffic::agv::planning::ScheduledDifferentialDriveExpander::SearchNode>, std::vector<std::shared_ptr<rmf_traffic::agv::planning::ScheduledDifferentialDriveExpander::SearchNode>, std::allocator<std::shared_ptr<rmf_traffic::agv::planning::ScheduledDifferentialDriveExpande