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

fiji3119's profile - activity

2022-05-02 02:50:06 -0500 received badge  Nice Question (source)
2021-05-26 15:45:30 -0500 marked best answer rclcpp::create_timer examples

Does anybody have a working example of rclcpp::create_timer? Thanks!

2021-02-15 15:52:45 -0500 received badge  Famous Question (source)
2020-12-18 16:16:51 -0500 received badge  Famous Question (source)
2020-12-18 16:16:51 -0500 received badge  Notable Question (source)
2020-12-18 16:16:51 -0500 received badge  Popular Question (source)
2020-10-01 14:42:46 -0500 received badge  Famous Question (source)
2020-08-27 00:59:32 -0500 received badge  Notable Question (source)
2020-08-20 15:53:33 -0500 received badge  Notable Question (source)
2020-08-18 15:23:12 -0500 received badge  Famous Question (source)
2020-08-10 10:17:02 -0500 received badge  Popular Question (source)
2020-08-07 18:40:39 -0500 asked a question Mavros VehicleInfo

Mavros VehicleInfo Hello, I have Pixhawk 2 Cube, and trying to access heartbeat using mavros. What mavros topic does V

2020-07-24 16:15:30 -0500 asked a question ros2 on CentOS 7

ros2 on CentOS 7 Hello, Has anyone tried installing ROS2 (dashing?) on CentOS 7? Thanks!

2020-07-14 13:05:51 -0500 commented answer rclcpp::create_timer examples

Not really. I would like to see an example of this.

2020-07-09 06:34:11 -0500 received badge  Notable Question (source)
2020-06-18 15:07:14 -0500 received badge  Popular Question (source)
2020-06-15 16:23:26 -0500 received badge  Famous Question (source)
2020-06-15 12:13:52 -0500 received badge  Famous Question (source)
2020-06-11 15:46:46 -0500 received badge  Popular Question (source)
2020-06-11 14:32:35 -0500 commented answer ROS2 Sim time for callbacks

Yes, that worked, thank you!. Also, regarding above example by @KenYN, I triedrclpp::create_timer(this, this->get_cl

2020-06-11 11:21:31 -0500 asked a question rclcpp::create_timer examples

rclcpp::create_timer examples Does anybody have a working example of rclcpp::create_timer? Thanks!

2020-06-11 10:05:04 -0500 commented answer ROS2 Sim time for callbacks

@KenYN when I print ros_clock.now().seconds() and ros_clock.now().nanoseconds(), it shows system time i.e epoch but not

2020-06-11 10:01:52 -0500 commented answer ROS2 Sim time for callbacks

@KenYN when I print ros_clock.now().seconds() and ros_clock.now().nanoseconds(), it shows system time i.e epoch but not

2020-06-10 15:36:24 -0500 asked a question ROS2 Sim time for callbacks

ROS2 Sim time for callbacks Hello everyone, I have a test node class with the constructor as follows: NodeTest::NodeTes

2020-06-02 11:32:15 -0500 received badge  Notable Question (source)
2020-05-28 11:32:04 -0500 commented answer ros2: embedding a msg as a field in a custom msg

Just what I was looking for - Thanks! Was having same error.

2020-05-27 17:04:37 -0500 received badge  Enthusiast
2020-05-22 16:20:37 -0500 received badge  Supporter (source)
2020-05-22 16:20:33 -0500 commented answer ROS1 Subscriber callback

Duh! Yeah. Thank you for pointing that out. Works!

2020-05-22 16:20:15 -0500 marked best answer ROS1 Subscriber callback

I have a simple class as follows:

class SimpleSub {
public:
    SimpleSub(ros::NodeHandle *nh) {
           nh->subscribe("/imu", 1000, &SimpleSub::imuSubsCallback, this);
   }
  void imuSubsCallback(const sensor_msgs::ImuConstPtr& msg)
  {
      ROS_INFO("Orientation: X=%f, Y=%f, Z=%f\n", msg->orientation.x, msg->orientation.y, msg->orientation.z);
  }
private:
       ros::Subscriber imuSub_;
};

When I run IMU publisher, my callback does not get called. However, it works when I use just stand-alone (not class member function) like this:

void imuSubsCallback(const sensor_msgs::ImuConstPtr& msg);

There is no compile error. Am I doing something wrong when registering callback (nh->subscriber)? Thanks!

2020-05-22 16:20:15 -0500 received badge  Scholar (source)
2020-05-21 20:17:20 -0500 received badge  Popular Question (source)
2020-05-21 12:02:06 -0500 received badge  Student (source)
2020-05-21 11:34:35 -0500 asked a question ROS1 Subscriber callback

ROS1 Subscriber callback I have a simple class as follows: class SimpleSub { public: SimpleSub(ros::NodeHandle *nh)

2020-05-18 15:08:09 -0500 marked best answer ROS2 Custom Message (MSG)

To test a custom message in say my_test_package, do I need to create a separate package for this - for example, my_test_package_msg? Can I add msg folder at same level as src folder in my_test_package? If so, how I do modify CMakeLists.txt to include the header file created by custom message?

Thanks, kumar

2020-05-11 17:26:43 -0500 received badge  Popular Question (source)
2020-05-08 18:32:14 -0500 asked a question ROS2 Custom Message (MSG)

ROS2 Custom Message (MSG) To test a custom message in say my_test_package, do I need to create a separate package for th

2020-04-14 03:49:04 -0500 received badge  Notable Question (source)
2020-04-13 17:26:02 -0500 edited answer Setting parameter from YAML files

My apologies - I did not give full file path. Works now. OK, I still find that the parameter from yaml file does not o

2020-04-13 09:58:16 -0500 received badge  Popular Question (source)
2020-04-01 08:44:09 -0500 answered a question Setting parameter from YAML files

My apologies - I did not give full file path. Works now.

2020-04-01 08:44:09 -0500 received badge  Rapid Responder (source)
2020-04-01 02:41:14 -0500 asked a question Setting parameter from YAML files

Setting parameter from YAML files Hello, I am trying to understand setting params via .yaml file. I tried running this