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

b-sriram's profile - activity

2021-05-26 15:46:19 -0500 marked best answer px4flow velocity calcuation

Hi,

I have a px4flow smart camera sensor, and use the px4flow_node to read the sensor output.

The topic /px4flow/optflow has a message type:

Header header

float32 ground_distance  # distance to ground in meters
int16   flow_x           # x-component of optical flow in pixels
int16   flow_y           # y-component of optical flow in pixels
float32 velocity_x       # x-component of scaled optical flow in m/s
float32 velocity_y       # y-component of scaled optical flow in m/s
uint8   quality          # quality of optical flow estimate

But when I see the output I only have values for flow_x and flow_y. I am only using it for a 2D robot so assuming I always know the ground distance, can someone please tell me how to calculate the x and y velocities using the flow_x and flow_y values?

2020-09-07 10:40:01 -0500 received badge  Famous Question (source)
2020-04-15 05:02:55 -0500 received badge  Popular Question (source)
2020-04-15 05:02:55 -0500 received badge  Notable Question (source)
2019-11-13 09:22:45 -0500 asked a question Line Strips and Points in Marker array not being published with correct pose

Line Strips and Points in Marker array not being published with correct pose Hi, I'm trying to publish a marker for eve

2019-09-24 02:21:22 -0500 received badge  Notable Question (source)
2019-09-24 02:21:22 -0500 received badge  Famous Question (source)
2019-09-24 02:21:22 -0500 received badge  Popular Question (source)
2019-05-20 01:35:53 -0500 marked best answer How to create a static tf from artags to map frame?

Hi,

I am using the ar_track_alvar package to detect artags placed in my environment.

When the tags are detected I get a new frame like "ar_marker_1" and this is linked to the robots camera frame.

What I want to do is basically place many tags in the environment and move the robot around and calculate the odometry using an EKF of the robot_localisation package. The input to the EKF would be the output from the ar_track_alvar package which gives how far the robot is from the tags (so relative to the tags).

I am not able to figure out how to create a static tf that links the artag frames to a world frame (say map frame) which would then help the EKF node to calculate the odometry.

This is my EKF launch parameters

frequency: 30

sensor_timeout: 1

two_d_mode: true

debug: false

publish_tf: true

publish_acceleration: false

map_frame: map              
odom_frame: odom            
base_link_frame: base_link  
world_frame: map           

dynamic_process_noise_covariance: true

pose0: marker1
pose0_config: [true,  true,  true,
               true, true, true,
               false, false, false,
              false, false, false,
               false, false, false]
pose0_differential: false
pose0_relative: false
pose0_queue_size: 40
pose0_nodelay: false

pose0: marker2
pose0_config: [true,  true,  true,
               true, true, true,
               false, false, false,
              false, false, false,
               false, false, false]
pose0_differential: false
pose0_relative: false
pose0_queue_size: 40
pose0_nodelay: false

pose0: marker3
pose0_config: [true,  true,  true,
               true, true, true,
               false, false, false,
              false, false, false,
               false, false, false]
pose0_differential: false
pose0_relative: false
pose0_queue_size: 40
pose0_nodelay: false

pose0: marker4
pose0_config: [true,  true,  true,
               true, true, true,
               false, false, false,
              false, false, false,
               false, false, false]
pose0_differential: false
pose0_relative: false
pose0_queue_size: 40
pose0_nodelay: false

process_noise_covariance: 
    [0.0001, 0,    0,    0,    0,    0,    0,     0,     0,    0,    0,    0,    0,    0,    0,
     0,    0.0001, 0,    0,    0,    0,    0,     0,     0,    0,    0,    0,    0,    0,    0,
     0,    0,    0.0001, 0,    0,    0,    0,     0,     0,    0,    0,    0,    0,    0,    0,
     0,    0,    0,    0.0001, 0,    0,    0,     0,     0,    0,    0,    0,    0,    0,    0,
     0,    0,    0,    0,    0.0001, 0,    0,     0,     0,    0,    0,    0,    0,    0,    0,
     0,    0,    0,    0,    0,    0.0001, 0,     0,     0,    0,    0,    0,    0,    0,    0,
     0,    0,    0,    0,    0,    0,    0.0001, 0,     0,    0,    0,    0,    0,    0,    0,
     0,    0,    0,    0,    0,    0,    0,     0.0001, 0,    0,    0,    0,    0,    0,    0,
     0,    0,    0,    0,    0,    0,    0,     0,     0.0001, 0,    0,    0,    0,    0,    0,
     0,    0,    0,    0,    0,    0,    0,     0,     0,    0.0001, 0,    0,    0,    0,    0,
     0,    0,    0,    0,    0,    0,    0,     0,     0,    0,    0.0001, 0,    0,    0,    0,
     0,    0,    0,    0,    0,    0,    0,     0,     0,    0,    0,    0.0001, 0,    0,    0,
     0,    0,    0,    0,    0,    0,    0,     0,     0,    0,    0,    0,    0.0001, 0,    0,
     0,    0,    0,    0,    0,    0,    0,     0,     0,    0,    0,    0,    0,    0.0001, 0,
     0,    0,    0,    0,    0,    0,    0,     0,     0,    0,    0,    0,    0,    0,    0 ...
(more)
2019-02-04 06:11:16 -0500 received badge  Famous Question (source)
2019-01-08 15:02:19 -0500 received badge  Famous Question (source)
2018-08-07 16:54:55 -0500 received badge  Famous Question (source)
2018-08-07 10:35:16 -0500 commented question April tag 2 ROS pose detection

I did do that. I took the library and wrote my own subscriber. There was no difference. (still lags) I though of the sam

2018-08-07 09:34:45 -0500 commented question April tag 2 ROS pose detection

@Stefan seems to be the same issue. I'll follow the post. Thanks!

2018-08-07 07:50:41 -0500 commented question April tag 2 ROS pose detection

@Stefan seems to be the same issue. I follow the post. Thanks!

2018-08-07 07:49:16 -0500 commented question April tag 2 ROS pose detection

I didn't set any thread limits. So its weird for me too.

2018-08-07 07:48:38 -0500 edited question April tag 2 ROS pose detection

April tag 2 ROS pose detection Hi, I am using the Apriltag2_ros package to detect the apriltags in my scene. Everythin

2018-08-06 06:15:52 -0500 received badge  Notable Question (source)
2018-08-06 06:10:22 -0500 commented question April tag 2 ROS pose detection

Its using a lot of CPU around 200%

2018-08-06 06:09:27 -0500 edited question April tag 2 ROS pose detection

April tag 2 ROS pose detection Hi, I am using the Apriltag2_ros package to detect the apriltags in my scene. Everythin

2018-08-06 05:13:53 -0500 commented question April tag 2 ROS pose detection

The resolution is 2048 x 2048.

2018-08-06 03:28:05 -0500 commented question April tag 2 ROS pose detection

Intel Xeon Processor with 4 cores and 32gb RAM. "does this mean it only lags when you try and visualize in rviz". Its l

2018-08-06 03:27:37 -0500 commented question April tag 2 ROS pose detection

Intel Xeon Processor with 4 cores and 32gb RAM. "does this mean it only lags when you try and visualize in rviz". Its l

2018-08-01 01:24:22 -0500 commented question April tag 2 ROS pose detection

That the time taken for the algorithm to process one image is extremely high. This makes the pose detection really slow.

2018-08-01 01:22:31 -0500 received badge  Popular Question (source)
2018-07-31 03:21:17 -0500 asked a question April tag 2 ROS pose detection

April tag 2 rose pose detection Hi, I am using the Apriltag2_ros package to detect the apriltags in my scene. Everythi

2018-07-12 02:29:28 -0500 commented answer Create node to receive data from OXTS imu

Hi @msy is your Ethernet port configured properly? Are you on the same subnet as the OXTS?

2018-07-06 13:40:30 -0500 marked best answer Create node to receive data from OXTS imu

Hi,

I have an OXTS box basically a imu + gps. I have connected it through Ethernet port.

I'm fairly new to ROS and don't know how to create a UDP socket in ros to receive the data i.e the UDP broadcast from the OXTS.

Could someone please suggest where I should start? Thanks

2018-06-15 17:19:52 -0500 marked best answer robot location prediction step

Hi,

In the robot_localisation package, when the use_control param is set to true then the values from the cmd_vel topic are used for the state prediction. But what if its set false. How does the prediction setup work?

I looked at one of the questions posed where it is explained how the prediction step works link.

The transition function for x is x_new = x_old + vx * t + 0.5 * a * t^2

Normally this would mean the vx and aare obtained from the previous state and when the use_control param is true, then these values are obtained from cmd_vel topic.

When I look at the documentation of robot_localisation package, it says

Note: The presence and inclusion of linear acceleration data from an IMU will currently “override” the predicted linear acceleration value.

Which I'm not able to understand as the values from the IMU are used for the correction step and not prediction.

I know I'm assuming something wrong here, but could someone please explain to me how it works?

Thanks Sriram

2018-05-23 07:50:37 -0500 received badge  Notable Question (source)
2018-05-23 07:50:37 -0500 received badge  Popular Question (source)
2018-04-27 17:55:50 -0500 received badge  Popular Question (source)
2018-04-27 17:55:50 -0500 received badge  Notable Question (source)
2018-04-27 17:55:50 -0500 received badge  Famous Question (source)
2018-03-06 05:32:05 -0500 asked a question ueye_cam sick camera

ueye_cam sick camera Hi, I use the ueye_cam driver to connect to a sick pico camera which uses the IDS software suit to

2018-02-27 02:43:50 -0500 commented answer How to create a static tf from artags to map frame?

... I dont get the proper inverse. This is because the coordinate system of the ar tags detected are rotated as compared

2018-02-27 02:38:04 -0500 edited question How to create a static tf from artags to map frame?

How to create a static tf from artags to map frame? Hi, I am using the ar_track_alvar package to detect artags placed i

2018-02-27 02:36:35 -0500 commented answer How to create a static tf from artags to map frame?

... I dont get the proper inverse. This is because the coordinate system of the ar tags detected are rotated as compared

2018-02-27 02:35:11 -0500 commented answer How to create a static tf from artags to map frame?

... I dont get the proper inverse. This is because the coordinate system of the ar tags detected are rotated as compared

2018-02-27 02:33:16 -0500 commented answer How to create a static tf from artags to map frame?

I created two transform objects: 1. Position of Markers in marker frame (inverse of the tf published by ar_track_alvar)

2018-02-27 02:25:33 -0500 received badge  Famous Question (source)
2018-01-24 07:24:53 -0500 asked a question Ros driver for picocam SICK?

Ros driver for picocam SICK? Hi, I have a SICK picoCam and was searching for a ROS driver to connect with the camera.

2018-01-23 06:20:31 -0500 received badge  Notable Question (source)
2018-01-19 10:03:23 -0500 commented answer How to create a static tf from artags to map frame?

I get I have to connect the tags to a world frame but I'm really new to Ros and don't know the code to do it. If you cou

2018-01-19 10:01:25 -0500 commented answer How to create a static tf from artags to map frame?

So my tags when sensed would give me the relative position of the camera(robot) with respect to it's position. Now what

2018-01-19 10:01:25 -0500 commented answer How to create a static tf from artags to map frame?

I already have an EKF running to localise using my encoder and Imu . This would then publish a transfrom from the Odom f

2018-01-19 07:06:56 -0500 commented answer How to create a static tf from artags to map frame?

Ok I do know the transformation between the gazebo frame and map origin. The only problem is I cannot create a static TF