Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
fed6f70
Add internal IMU data publisher by ros::Timer
tongtybj Jun 5, 2018
291ccf5
Modification for a correct merge
Myzhar Jun 25, 2018
c218cd2
Merge branch 'tongtybj-imu_pub' into devel
Myzhar Jun 25, 2018
4378c2e
Merge pull request #217 from stereolabs/master
Myzhar Jun 25, 2018
e1c80d9
Merge pull request #218 from stereolabs/master
Myzhar Jun 25, 2018
90fe983
Corrected issue with IMU reference frame
Myzhar Jun 26, 2018
845e96b
Code reformatting
Myzhar Jun 26, 2018
c893e79
Removed unuseful parameters from publisher functions that were using …
Myzhar Jun 26, 2018
1a7857c
Merged PR #189 : Add publisher for disparity
Myzhar Jun 26, 2018
f2bbd93
Added launch example to run ZED as a nodelet with ROS nodelet manager
Myzhar Jun 27, 2018
9571146
Code refactoring
Myzhar Jun 27, 2018
7c45753
Code refactoring
Myzhar Jun 27, 2018
19e1f0c
Added coordinate system conversion to ROS according to ZED SDK version
Myzhar Jun 27, 2018
633b848
Improved performances using OpenMP
Myzhar Jun 28, 2018
4870071
Modify resolution by launch file
Myzhar Jun 28, 2018
1157cfe
Coordinate changes for Z_UP-X_FWD removed
Myzhar Jun 28, 2018
68d472d
Added ROS service to request resetTracking to ZED SDK
Myzhar Jun 29, 2018
5d0d7fe
Reorganized ZED TF Tree according to ROS conventions
Myzhar Jun 29, 2018
027aabc
Minor changes to file names and code order
Myzhar Jul 2, 2018
f44f0e3
Fixed compilation error with SDK minor than v2.5.x
Myzhar Jul 2, 2018
7f939a5
Fixed issue #212 : zed-wrapper-node running on TX2 freezes when no
Myzhar Jul 2, 2018
a5eec02
Publishing odometry when depth_map topic is subscribed (same as for
Myzhar Jul 2, 2018
2563432
Added publishers for Confidence Image (8 bit) and Confidence Map (float)
Myzhar Jul 2, 2018
d9e88e9
Exposed enable_pose_smoothing and enable_spatial_memory params for
Myzhar Jul 3, 2018
8fa4b52
Exposed "initial_pose" to initialize tracking position
Myzhar Jul 3, 2018
f664f87
Modified "reset_tracking" to reset to "initial_pose" from Param Server
Myzhar Jul 3, 2018
452aaa8
Added service to set pose
Myzhar Jul 4, 2018
29c681b
Fixed issue with "Camera info" when setting new "mat_resize_factor"
Myzhar Jul 5, 2018
9f44001
Added missing set_pose.srv
Myzhar Jul 5, 2018
8c279bd
Removed odometry and replaced with "map pose"
Myzhar Jul 5, 2018
ae74d6c
Fixes the "unchecking/checking" depth cloud problem
Myzhar Jul 5, 2018
9178296
Added tool function slTime2Ros to fix timestamp
Myzhar Jul 5, 2018
195fd68
Coordinate changing code cleaned
Myzhar Jul 6, 2018
95bdebd
Added "imu/data_raw" topic according to ROS REP145
Myzhar Jul 6, 2018
f0be773
Update to publish IMU TF and topics at about 500 Hz
Myzhar Jul 6, 2018
d7ccb07
Added IMU R,t transform to zed_camera_center [TO BE CHECKED]
Myzhar Jul 6, 2018
a6f4136
Fixed issue with IMU link timestamp
Myzhar Jul 9, 2018
c226489
Added back odometry frame (together with map)
Myzhar Jul 9, 2018
b9b9659
Fixed IMU reference frame
Myzhar Jul 10, 2018
5087218
Fixed odometry transformation. Delta movements that are in camera frame
Myzhar Jul 11, 2018
ffc7ad3
Fixed IMU frame publishing
Myzhar Jul 12, 2018
22014ee
Added "verbose" parameter as for zendesk request
Myzhar Jul 12, 2018
668911d
Removed unuseful `include`
Myzhar Jul 13, 2018
e627f2c
Uniformed member variable names to camel case
Myzhar Jul 13, 2018
9c5c346
Modified logger level automatically to "Debug" if node is compiled with
Myzhar Jul 13, 2018
832be65
Added debug info about working thread duration in case it does not
Myzhar Jul 13, 2018
0c38c3a
Exposed "frame_rate" to "zed.launch" file
Myzhar Jul 13, 2018
6f04504
Added option "init_odom_with_imu" to initialize odometry with first pose
Myzhar Jul 16, 2018
8d7220b
Added check on the couple "resolution/framerate".
Myzhar Jul 16, 2018
544f74d
Updated all launch files to latest modifications
Myzhar Jul 16, 2018
3a98446
Fixed bug when the couple "resolution/framerate" was valid
Myzhar Jul 16, 2018
edc4e0f
Added service to reset odometry and clear drift errors.
Myzhar Jul 16, 2018
88bffb2
Exposed the SVO and Odometry Frame parameters to "zed.launch"
Myzhar Jul 16, 2018
7f8d8cf
Reduced the number of warning messages in the case that elaboration time
Myzhar Jul 16, 2018
775a963
Fixed "SIGTERM if no ZED was open" using the Serial Number
Myzhar Jul 16, 2018
1f0d41d
Code cleaning
Myzhar Jul 16, 2018
9c7c434
Fix for IMU TF not propagating in Rviz
Myzhar Jul 16, 2018
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
Fixed IMU frame publishing
 * changed names of transforms variables to a more clear form
  • Loading branch information
Myzhar committed Jul 12, 2018
commit ffc7ad34edb3865d51794e0b03bbce41725aecda
43 changes: 22 additions & 21 deletions rviz/zedm.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Panels:
Expanded:
- /Global Options1
- /RobotModel1/Links1
- /TF1
- /TF1/Frames1
- /DepthCloud1/Occlusion Compensation1
- /Imu1
- /Odometry1/Shape1
- /Odometry1/Covariance1/Position1
Splitter Ratio: 0.5
Tree Height: 451
Expand Down Expand Up @@ -95,7 +96,7 @@ Visualization Manager:
Visual Enabled: true
- Class: rviz/TF
Enabled: true
Frame Timeout: 15
Frame Timeout: 5
Frames:
All Enabled: false
imu_link:
Expand All @@ -114,9 +115,9 @@ Visualization Manager:
Value: false
zed_right_camera_optical_frame:
Value: false
Marker Scale: 1
Marker Scale: 0.5
Name: TF
Show Arrows: false
Show Arrows: true
Show Axes: true
Show Names: true
Tree:
Expand Down Expand Up @@ -244,12 +245,12 @@ Visualization Manager:
Topic: /zed/imu/data
Unreliable: false
Value: true
fixed_frame_orientation: false
fixed_frame_orientation: true
- Alpha: 1
Axes Length: 1
Axes Radius: 0.100000001
Class: rviz/Pose
Color: 255; 25; 0
Color: 0; 255; 0
Enabled: true
Head Length: 0.100000001
Head Radius: 0.0500000007
Expand All @@ -260,7 +261,7 @@ Visualization Manager:
Topic: /zed/map
Unreliable: false
Value: true
- Angle Tolerance: 0.100000001
- Angle Tolerance: 0.00999999978
Class: rviz/Odometry
Covariance:
Orientation:
Expand All @@ -278,20 +279,20 @@ Visualization Manager:
Value: true
Value: true
Enabled: true
Keep: 0
Keep: 1
Name: Odometry
Position Tolerance: 0.100000001
Position Tolerance: 0.00100000005
Shape:
Alpha: 1
Axes Length: 0.100000001
Axes Radius: 0.00999999978
Color: 255; 25; 0
Head Length: 0.300000012
Head Radius: 0.100000001
Shaft Length: 1
Shaft Radius: 0.0500000007
Value: Axes
Topic: ""
Head Length: 0.100000001
Head Radius: 0.0500000007
Shaft Length: 0.300000012
Shaft Radius: 0.0199999996
Value: Arrow
Topic: /zed/odom
Unreliable: false
Value: true
Enabled: true
Expand Down Expand Up @@ -319,25 +320,25 @@ Visualization Manager:
Views:
Current:
Class: rviz/Orbit
Distance: 3.55838561
Distance: 3.8035841
Enable Stereo Rendering:
Stereo Eye Separation: 0.0599999987
Stereo Focal Distance: 1
Swap Stereo Eyes: false
Value: false
Focal Point:
X: 0.0342643671
Y: 0.298864007
Z: 0.638629913
X: 0.731076837
Y: 1.32646406
Z: 0.494817436
Focal Shape Fixed Size: false
Focal Shape Size: 0.0500000007
Invert Z Axis: false
Name: Current View
Near Clip Distance: 0.00999999978
Pitch: 0.119796388
Pitch: 0.109797455
Target Frame: <Fixed Frame>
Value: Orbit (rviz)
Yaw: 2.39409924
Yaw: 2.76409745
Saved: ~
Window Geometry:
Camera:
Expand Down
15 changes: 7 additions & 8 deletions src/nodelet/include/zed_wrapper_nodelet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ZEDWrapperNodelet : public nodelet::Nodelet {
* \param odom_base_transform : Transformation representing the camera pose from base frame
* \param t : the ros::Time to stamp the image
*/
void publishOdom(tf2::Transform odom_base_transform, ros::Time t);
void publishOdom(tf2::Transform base_to_odom_transform, ros::Time t);

/* \brief Publish the pose of the camera as a transformation
* \param base_transform : Transformation representing the camera pose from base frame
Expand All @@ -102,7 +102,7 @@ class ZEDWrapperNodelet : public nodelet::Nodelet {
* \param base_transform : Transformation representing the camera pose from base frame
* \param t : the ros::Time to stamp the image
*/
void publishOdomFrame(tf2::Transform odom_base_transform, ros::Time t);
void publishOdomFrame(tf2::Transform base_to_odom_transform, ros::Time t);

/* \brief Publish the pose of the imu as a transformation
* \param base_transform : Transformation representing the imu pose from camera frame
Expand Down Expand Up @@ -289,13 +289,12 @@ class ZEDWrapperNodelet : public nodelet::Nodelet {
bool spatial_memory;

//Tracking variables
sl::Pose zed_pose;
sl::Pose odom_pose;
std::vector<float> initial_track_pose;
tf2::Transform pose_odom_transform;
tf2::Transform odom_base_transform;
tf2::Transform imu_base_transform;
sl::Transform initial_pose_sl;
std::vector<float> initial_track_pose;

tf2::Transform odom_to_map_transform;
tf2::Transform base_to_odom_transform;


// zed object
sl::InitParameters param;
Expand Down
Loading