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

Epsilon_cm's profile - activity

2022-09-09 04:05:33 -0500 received badge  Famous Question (source)
2021-05-12 05:50:12 -0500 received badge  Notable Question (source)
2021-05-12 05:14:41 -0500 commented question How to remove the namespace of tf published by gazebo sensor plugin?

livox_horizon.xacro: https://gist.github.com/EpsAvlc/f0c244c9c1c2d19b058698f6252b793d

2021-05-12 05:14:23 -0500 commented question How to remove the namespace of tf published by gazebo sensor plugin?

livox_horizon.xacro:https://gist.github.com/EpsAvlc/f0c244c9c1c2d19b058698f6252b793d

2021-05-12 03:45:43 -0500 commented question How to remove the namespace of tf published by gazebo sensor plugin?

Yes, this is my robuster_horizon file: https://gist.github.com/EpsAvlc/c21dfa85fdcda26b9bdd679ba57260fd

2021-05-11 08:08:02 -0500 commented question How to remove the namespace of tf published by gazebo sensor plugin?

You might need to make some changes in the urdf file for the robot model.Can you please share your launch file wherei

2021-05-11 08:07:33 -0500 received badge  Popular Question (source)
2021-05-11 08:07:29 -0500 edited question How to remove the namespace of tf published by gazebo sensor plugin?

How to remove the namespace of tf published by gazebo sensor plugin? I spawn a robot called robuster, which has a ray se

2021-05-11 08:07:29 -0500 received badge  Editor (source)
2021-05-11 08:07:09 -0500 edited question How to remove the namespace of tf published by gazebo sensor plugin?

How to remove the namespace of tf published by gazebo sensor plugin? I spawn a robot called robuster, which has a ray se

2021-05-09 07:20:40 -0500 asked a question How to remove the namespace of tf published by gazebo sensor plugin?

How to remove the namespace of tf published by gazebo sensor plugin? I spawn a robot called robuster, which has a ray se

2020-10-13 02:57:14 -0500 received badge  Popular Question (source)
2020-08-12 06:07:21 -0500 received badge  Enthusiast
2020-07-14 08:31:59 -0500 asked a question How to get nodes of a octomap in a specific 3d box?

How to get nodes of a octomap in a specific 3d box? I want to obtain nodes of a octomap in a specific 3d box, like pcl:

2020-01-22 07:01:04 -0500 received badge  Famous Question (source)
2020-01-22 07:01:04 -0500 received badge  Notable Question (source)
2018-10-16 08:11:32 -0500 marked best answer Where should I indeed place my "ros::spin()"?

I am a freshman for ROS, and I find a interesting (for me) thing: I wrote a node, for example, let's call it my_node.cpp, it looks like this:

//in my_node.cpp
ros::init(argc, argv, "my_node");
ros::NodeHandle nh("");
ros::NodeHandle nh_local("~");
MyNode my_node(nh, nh_local);
ros::spin();

And in the construct function of MyNode, it looks like this:

MyNode (ros::Nodehandle nh, ros:Nodehandle nh_local)
{ 
message_filters::Subscriber<Image> image1_sub(nh, "image1", 1);
message_filters::Subscriber<Image> image2_sub(nh, "image2", 1); 
typedef sync_policies::ApproximateTime<Image, Image> MySyncPolicy;
// ApproximateTime takes a queue size as its constructor argument, hence MySyncPolicy(10)
Synchronizer<MySyncPolicy> sync(MySyncPolicy(10), image1_sub, image2_sub);
sync.registerCallback(boost::bind(&callback, _1, _2));
}

In fact it just looks like the tutorial of ros wiki about message filter. The fact is, my callback function had never been called.When I add "ros::spin()" in the construct function, however, it works. The issue is, I had wrote the construction like this before:

MyNode (ros::Nodehandle nh, ros:Nodehandle nh_local)
{ 
     auto my_sub_ = nh.subscribe("topic", 10, &mycallback, this);
}

And there was no "ros::spin()" in the construct function but there was one in my_node.cpp's main().And it works too. So where should I indeed place my ros::spin()?

2018-10-16 06:51:20 -0500 commented answer Where should I indeed place my "ros::spin()"?

That's my fault, and i tried what you said, it worked.Thanks :)

2018-10-16 05:59:20 -0500 commented answer Where should I indeed place my "ros::spin()"?

I agree with you.The fact is,if i place the spin() outside my constructor, then the message_filters::Synchronizer's call

2018-10-16 05:57:42 -0500 received badge  Popular Question (source)
2018-10-15 10:57:45 -0500 asked a question Where should I indeed place my "ros::spin()"?

Where should I indeed place my "ros::spin()"? I am a freshman for ROS, and I find a interesting (for me) thing: I wrote

2018-10-01 18:41:28 -0500 received badge  Popular Question (source)
2018-10-01 08:03:01 -0500 commented question launchfile's <args> problem

Thank you.

2018-10-01 08:02:26 -0500 commented answer launchfile's <args> problem

Thanks a lot for your response.

2018-10-01 08:00:37 -0500 marked best answer launchfile's <args> problem

When I write a launch file,I try to run a node with command line arguments. Just like:

<node pkg="my_pkg" type="my_type" name="my_node" output="screen" args="--my_arg my_num">

But when i check the argv parameters,i found there're more than three, the additional two is

__name:=my_node
__log:=xxxxx.log

What's wrong with it? Is there any solution to skip the aditional two comand line?

2018-10-01 08:00:37 -0500 received badge  Scholar (source)
2018-10-01 08:00:33 -0500 received badge  Supporter (source)
2018-10-01 05:06:28 -0500 asked a question launchfile's <args> problem

launchfile's <args> problem When I write a launch file,I try to run a node with command line arguments. Just like: