ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Problems with my robot and rtabmap

asked 2021-03-22 16:47:01 -0600

jarain78 gravatar image

updated 2021-05-02 15:14:23 -0600

matlabbe gravatar image

Hello everyone, after a month of trying to solve some issues , I haven`t got any lucky. That is why I am turning to this forum to see if someone can help me with it . Here is my problem in context:

I have designed a robot in which I use a jetson nano, Arduino mMega 2560, IMU- MPU6050, Intel Realsense D435, T256, ydlidar X4 and ROS Melodic.

Problem 1

When I try to integrate the ros rtabmap package the figure shows how rviz represents the point cloud.

image description

I have tried to apply a transformation to the cameras to rotate the point cloud and display it correctly:

Position and orientation of the D435 camera within the URDF:

xyz = -0.047515, -0.0065262, 0.64317

rpy = -1.5708, 0, -1.5708

Position and orientation of the T265 camera within the URDF:

xyz = -0.035015, -0.0065262, 0.58873

rpy = 1.5708, 0, 1.5708

node pkg="tf" type="static_transform_publisher" name="camera_link_to_t265_link" args="-0.047515, -0.0065262, 0.64317 -1.5708, 0, -1.5708 /t265_link /odom/sample 100"

node pkg="tf" type="static_transform_publisher" name="camera_link_to_d435_link" args="-0.047515, -0.0065262, 0.64317 -1.5708, 0, -1.5708 /d435_link /color/image_raw 100"

Problem 2

When I try to do 2D navigation, ros returns these errors and warnings and I don't know how to fix it:

[ERROR] [1616447739.443209583]: The goal pose passed to this planner must be in the map frame.  It is instead in the base_link frame.

[ WARN] [1616447739.443272106]: Failed to transform the goal pose from base_link into the map frame: Lookup would require extrapolation into the future.  Requested time 1616447739.441912138 but the latest data is at time 1616447739.359707971, when looking up transform from frame [base_link] to frame [map]

[ERROR] [1616447739.443394782]: The goal pose passed to this planner must be in the map frame.  It is instead in the base_link frame.

[ERROR] [1616447739.443574767]: The goal pose passed to this planner must be in the map frame.  It is instead in the base_link frame.

Rqt Graph

Nodes Only

image description

Nodes Topics

image description

All Nodels

image description

Thank you for your help.

jarain78

edit retag flag offensive close merge delete

Comments

Hi @jarin78, What types of motors and motor controller you used in your project?

njit gravatar image njit  ( 2021-12-30 09:33:05 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-05-02 15:18:06 -0600

matlabbe gravatar image

For your first problem, you seem to have resolved it by adjusting the tf static_transform_publisher.

For the problem 2, the goal you are sending should be sent in map frame, you are sending it in base_link frame. Are you sending goals with RVIZ? make sure your global frame (in global options) is set to map.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-03-22 16:47:01 -0600

Seen: 520 times

Last updated: May 02 '21