Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ROS2 wrapper #3976

Merged
merged 123 commits into from
Dec 6, 2021
Merged
Changes from 1 commit
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
26ea2ab
-Add maximize subwindow
alonfaraj Feb 4, 2021
1a3ae35
Fix broken docs ref to image types
alonfaraj Mar 14, 2021
aee0025
- fix missing cmmits after merge
alonfaraj Jul 8, 2021
3fd51ed
- add ros2 folder and first changes
Aug 12, 2021
4f2dc08
- commit everything
alonfaraj Aug 12, 2021
c8cb2f6
- update macros
alonfaraj Aug 12, 2021
8cb50e8
- update ROS_ERROR_STREAM
alonfaraj Aug 12, 2021
ab90dc4
- add missin msg
alonfaraj Aug 12, 2021
3eafad2
- update macros
alonfaraj Aug 12, 2021
e204812
- update ros::Publisher and ros::Subscriber
alonfaraj Aug 12, 2021
b9d7f55
- update subscribers and callbacks
alonfaraj Aug 13, 2021
dc5c103
- update nh_private to sub_node
alonfaraj Aug 13, 2021
cf7c221
- add SharedPtr to Publisher
alonfaraj Aug 13, 2021
7cff7e8
- fix cb
alonfaraj Aug 13, 2021
1187ac1
- commit everything after PD_position node pass
alonfaraj Aug 13, 2021
86b4fcd
- commit some convrsions airsim_ros_wrapper
alonfaraj Aug 14, 2021
0200df0
- commit updates
alonfaraj Aug 14, 2021
d180718
- update CameraInfo
alonfaraj Aug 14, 2021
f868289
- Update CameraInfo
alonfaraj Aug 14, 2021
e3c1177
- update
alonfaraj Aug 14, 2021
a44eb96
- update
alonfaraj Aug 15, 2021
5bb4344
- update time
alonfaraj Aug 15, 2021
0a80b88
- update imageptr
alonfaraj Aug 15, 2021
8326c12
- cosmetic
alonfaraj Aug 15, 2021
6fc7aa2
- fix cb with placeholders and args
alonfaraj Aug 15, 2021
cb14693
- fix image msg ptr
alonfaraj Aug 15, 2021
639054b
- fix set_parameter
alonfaraj Aug 15, 2021
bd3add7
- update
alonfaraj Aug 15, 2021
2e1f18b
- commit fix
alonfaraj Aug 15, 2021
9cd345c
- chane sensor_pubs to seperate vectors
alonfaraj Aug 16, 2021
60cb1d6
- replace ros::AsyncSpinner logic
alonfaraj Aug 17, 2021
a78ee59
- update fromSec()
alonfaraj Aug 17, 2021
0d0d183
- update
alonfaraj Aug 17, 2021
d35f0dd
- add DEPENDENCIES to rosidl_generate_interfaces
alonfaraj Aug 18, 2021
694eae7
- add inline to get_yaw_from_quat_msg()
alonfaraj Aug 18, 2021
f4fdcef
- add launch files
alonfaraj Aug 18, 2021
28b5401
- some fixes and ToDo's
alonfaraj Aug 18, 2021
369c105
- add '-g' to cmakelist.txt
alonfaraj Aug 18, 2021
4cbe414
- add auto params declartion
alonfaraj Aug 19, 2021
c279dad
- cosmetic
alonfaraj Aug 19, 2021
de07119
- add missing declare_parameter
alonfaraj Aug 19, 2021
2f49e35
- change airsim_node launch file
alonfaraj Aug 19, 2021
845497c
- add static_transforms to launch file
alonfaraj Aug 19, 2021
431cd3f
- add pd_position_controller_simple launch file
alonfaraj Aug 19, 2021
38973cb
- update topic names to show node name
alonfaraj Aug 19, 2021
ef4b668
Revert "- fix missing cmmits after merge"
alonfaraj Aug 19, 2021
b5c726b
Revert "Fix broken docs ref to image types"
alonfaraj Aug 19, 2021
c7fc7d7
Revert "-Add maximize subwindow"
alonfaraj Aug 19, 2021
37fd2fe
- remove folders from tracking
alonfaraj Aug 22, 2021
c95f50c
- remove folder from tracking
alonfaraj Aug 22, 2021
a2bc00c
- remove file from tracking
alonfaraj Aug 22, 2021
5fb7053
- update gitignore
alonfaraj Aug 22, 2021
672cd52
- remove folder from tracking
alonfaraj Aug 22, 2021
b0ecd0c
- add airsim_with_simple_PD_position_controller lauch
alonfaraj Aug 22, 2021
2428e0a
- add dynamic_constraints.launch.py
alonfaraj Aug 22, 2021
ff2c49a
- update static_transforms lauhc file
alonfaraj Aug 22, 2021
77eb8d0
- remove folder from tracking
alonfaraj Aug 22, 2021
ef420fe
- remove priavte node handle
alonfaraj Aug 22, 2021
98f223f
- update gitignore
alonfaraj Aug 22, 2021
657da12
- apply clang format
alonfaraj Aug 22, 2021
3b8b71c
- apply clang
alonfaraj Aug 22, 2021
74e5e2f
- undo changes in ros1 src files
alonfaraj Aug 22, 2021
0427c94
- apply clang
alonfaraj Aug 22, 2021
cc69f61
- revert change in ros1
alonfaraj Aug 22, 2021
05e3c32
- revert change in ros1
alonfaraj Aug 22, 2021
39665bd
- add rviz launch file
alonfaraj Aug 22, 2021
9306d9e
- delete old launch files
alonfaraj Aug 22, 2021
a7e3efe
- cleanup
alonfaraj Aug 23, 2021
7e60c72
- update airsim_interfaces package.xml
alonfaraj Aug 25, 2021
7e66542
- cleanup
alonfaraj Aug 25, 2021
75cfe80
- remove ros pkgs from include
alonfaraj Aug 25, 2021
f4b5e0c
- cleanup
alonfaraj Aug 26, 2021
2645426
- enable complier warnings
alonfaraj Aug 26, 2021
b150402
- fix compiler warnings - init order, unused params
alonfaraj Aug 26, 2021
a5991ee
- remove '-g' from compiler args
alonfaraj Aug 26, 2021
ccaf873
- remove boost dependencies
alonfaraj Aug 31, 2021
6c285d2
- reorder find_package(OpenCV REQUIRED)
alonfaraj Aug 31, 2021
4c0b602
- remove set LIBRARY_DIRS, LIBS and link_directories
alonfaraj Aug 31, 2021
d945369
- remove stray semicolons
alonfaraj Sep 12, 2021
ec808f1
- move members initialization
alonfaraj Sep 12, 2021
753d8b0
- change member to const
alonfaraj Sep 12, 2021
13bbb27
- marl dtor as defualt
alonfaraj Sep 12, 2021
991e7dd
- apply clang
alonfaraj Sep 12, 2021
b858232
- convert std::cout to RCLCPP logger
alonfaraj Sep 12, 2021
f5607b1
- clang
alonfaraj Sep 12, 2021
c50021f
- change check isENU_
alonfaraj Sep 13, 2021
3e665c5
- move odom msg generation to unified function
alonfaraj Sep 13, 2021
c6c7ea1
- add convert_tf_msg_to_enu() to avoid code duplication
alonfaraj Sep 13, 2021
a1ba52a
- add ROS2 dockerfile
alonfaraj Oct 20, 2021
80b488c
- add tf2_ros/buffer.h to fix galactic build
alonfaraj Nov 7, 2021
7cd73f0
- cleanup
alonfaraj Nov 11, 2021
c6c17b1
- clean commented out code
alonfaraj Nov 11, 2021
ff3bf75
- change member variables to under_scored_with_
alonfaraj Nov 11, 2021
3f5ea2d
- change member variables to under_scored_with_
alonfaraj Nov 11, 2021
a43d299
- move publish_clock_ init to ctor
alonfaraj Nov 11, 2021
52e79aa
- cleanup
alonfaraj Nov 11, 2021
819ed88
- remove ros1 launch files
alonfaraj Nov 11, 2021
27c3314
- apply clang
alonfaraj Nov 11, 2021
3e99415
- get GeoPoint directly from AirSimSettings
alonfaraj Nov 11, 2021
4bceece
- add more details about QoS
alonfaraj Nov 11, 2021
26096b5
- rename member drone_control_mutex_ to control_mutex_
alonfaraj Nov 11, 2021
87d3eaf
- apply clang
alonfaraj Nov 11, 2021
cd25854
- change std::function to one-liner lambda
alonfaraj Nov 11, 2021
92c7ae3
- chnage VelCmdGroup to use VelCmd msg instead of duplicate
alonfaraj Nov 11, 2021
2b0e47f
- unified generate VelCmd msg logic
alonfaraj Nov 11, 2021
d5c72ed
- cleanup
alonfaraj Nov 11, 2021
2f43573
- shutdown node in case initialize_airsim() failed
alonfaraj Nov 11, 2021
ca6fccd
- change the image step calculation to avoid hard coded
alonfaraj Nov 11, 2021
0ebec3c
removed a modified file from PR
alonfaraj Nov 14, 2021
98428ff
- removed a modified file from PR
alonfaraj Nov 14, 2021
ef87585
add get_transform_msg_from_airsim() ro reduce code duplication
alonfaraj Nov 14, 2021
9734b48
- get_transform_msg_from_airsim overload to use with Quaternionr
alonfaraj Nov 14, 2021
ce98edb
- move airsim_client_ init to ctor
alonfaraj Nov 14, 2021
041c652
- remove [PIDPositionController] from log, it's already printed by ROS
alonfaraj Nov 15, 2021
54a89a6
- add get_airlib_body_vel_cmd() to avoid code duplicate
alonfaraj Nov 15, 2021
e28cb2e
- assign structs directly instead of members
alonfaraj Nov 15, 2021
a90e5f3
- check image type against Enum instead int
alonfaraj Nov 21, 2021
51751cb
- move camera topic to seperate string to avoid duplicate
alonfaraj Nov 21, 2021
08d1d2d
- cleanup
alonfaraj Nov 21, 2021
b070336
- move common topic prefix to string variable
alonfaraj Nov 21, 2021
a4605bd
- simplify Dockerfile
alonfaraj Nov 21, 2021
4946fa6
- remove DEBIAN_FRONTEND from Dockerfile
alonfaraj Nov 21, 2021
8f5f660
- revert using lambda, it cause a crash so leave it with std::functio…
alonfaraj Dec 1, 2021
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
Prev Previous commit
Next Next commit
- update CameraInfo
  • Loading branch information
alonfaraj committed Aug 14, 2021
commit d180718eed9498dbba8266cfa6e597b5fab8fb9c
10 changes: 5 additions & 5 deletions ros2/src/airsim_ros_pkgs/src/airsim_ros_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1457,11 +1457,11 @@ void AirsimROSWrapper::read_params_from_yaml_and_fill_cam_info_msg(const std::st
cam_info.width = doc[WIDTH_YML_NAME].as<int>();
cam_info.height = doc[HEIGHT_YML_NAME].as<int>();

SimpleMatrix K_(3, 3, &cam_info.K[0]);
SimpleMatrix K_(3, 3, &cam_info.k[0]);
convert_yaml_to_simple_mat(doc[K_YML_NAME], K_);
SimpleMatrix R_(3, 3, &cam_info.R[0]);
SimpleMatrix R_(3, 3, &cam_info.r[0]);
convert_yaml_to_simple_mat(doc[R_YML_NAME], R_);
SimpleMatrix P_(3, 4, &cam_info.P[0]);
SimpleMatrix P_(3, 4, &cam_info.p[0]);
convert_yaml_to_simple_mat(doc[P_YML_NAME], P_);

cam_info.distortion_model = doc[DMODEL_YML_NAME].as<std::string>();
Expand All @@ -1471,8 +1471,8 @@ void AirsimROSWrapper::read_params_from_yaml_and_fill_cam_info_msg(const std::st
D_rows = D_node["rows"].as<int>();
D_cols = D_node["cols"].as<int>();
const YAML::Node& D_data = D_node["data"];
cam_info.D.resize(D_rows * D_cols);
cam_info.d.resize(D_rows * D_cols);
for (int i = 0; i < D_rows * D_cols; ++i) {
cam_info.D[i] = D_data[i].as<float>();
cam_info.d[i] = D_data[i].as<float>();
}
}