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

ZiyangLI's profile - activity

2022-12-05 06:38:21 -0500 received badge  Famous Question (source)
2020-11-26 17:29:58 -0500 received badge  Notable Question (source)
2020-11-26 17:29:58 -0500 received badge  Popular Question (source)
2020-06-06 13:44:30 -0500 received badge  Famous Question (source)
2019-07-10 22:37:44 -0500 received badge  Famous Question (source)
2017-12-02 18:17:12 -0500 marked best answer Is it possible to launch rviz with a fixed frame size?

Hi all,

I have searched but I can not find any clue to launch rviz with a fixed frame size. For example, I want to set the visualization region to be 1080*900 pixel? How to do that?

I am using Fuerte on Ubuntu*64.

2017-10-13 00:50:06 -0500 received badge  Notable Question (source)
2017-10-13 00:50:06 -0500 received badge  Famous Question (source)
2017-10-13 00:50:06 -0500 received badge  Popular Question (source)
2017-06-20 06:55:26 -0500 received badge  Famous Question (source)
2017-02-08 07:42:10 -0500 received badge  Notable Question (source)
2017-02-08 07:42:10 -0500 received badge  Popular Question (source)
2016-08-02 06:05:18 -0500 received badge  Famous Question (source)
2016-06-16 03:13:31 -0500 received badge  Notable Question (source)
2016-01-15 11:52:52 -0500 received badge  Taxonomist
2015-10-15 14:34:59 -0500 received badge  Famous Question (source)
2015-09-10 09:30:25 -0500 marked best answer Tutorials on cram_designator

Hi, are there better tutorials on how to use designators with cram_designator?

I have checked http://ros.org/wiki/cram_designators but the following part is really unclear for me

(def-fact-group navigation-action-designator (action-desig)
  (<- (action-desig ?designator ?goal)
    (desig-prop ?designator (type navigation))
    (desig-prop ?designator (goal ?goal))))

How do I interpret these codes?

  • What are those things with question mark? Are they temporal variables?
  • What is action-desig? In this case I think it is an action-designator type input instead of a function. So what does (action-desig ?designator ?goal) means?
  • In cram_pr2 process module, I can find even more definitions like these but quite hard to understand the meaning. Do I need to learn some prolog?

Looking forward to reply!

2015-08-11 10:54:21 -0500 received badge  Popular Question (source)
2015-08-02 11:01:59 -0500 commented answer How to edit target_link_libraries

What if I only want to link thread lib?

2015-05-27 08:49:59 -0500 marked best answer How to write a node that uses libusb?

Hi all,

I need to write a node to listen to a usb port via libusb. I used to do that with a simple cpp program, but I had to use sudo to open the port. How can I rosrun such a program?

By the way, I am also interested in how rosserial pkg. does the trick. Because I think open a serial port also require root privilege.

2015-04-18 05:22:30 -0500 asked a question How to make a ATAN-model calibration file for mvBluefox camera?

Dear all,

I have a bluefox camera and I calibrate it according to http://wiki.ros.org/ethzasl_ptam/Tuto... .

But I have no idea how to turn the result into a standard calibration file as in http://wiki.ros.org/camera_calibratio... .

Look forward to your help!

Ziyang

2015-04-14 10:02:50 -0500 received badge  Famous Question (source)
2015-02-26 09:41:55 -0500 received badge  Famous Question (source)
2015-02-26 09:41:55 -0500 received badge  Notable Question (source)
2015-02-26 09:40:29 -0500 received badge  Notable Question (source)
2015-02-26 09:39:59 -0500 received badge  Notable Question (source)
2015-02-26 09:39:03 -0500 received badge  Famous Question (source)
2015-02-10 10:05:58 -0500 received badge  Notable Question (source)
2015-02-09 03:36:35 -0500 received badge  Popular Question (source)
2015-02-09 00:25:39 -0500 asked a question How to bind a node to a specific cpu core?

Dear all,

I am tyring to run a node with a specific cpu core but have no idea how to do that.

What's more, I also want to specify the cpu core of callback functions. I know I can use asynchronous spinner to control the number of threads, but it seems there is no way to manually set which core the thread uses.

Look forward to any help!

Ziyang

2015-02-07 01:23:31 -0500 commented answer interactivemarker processfeedback callback as a class method

Thank you so much for this answer!

2015-01-28 00:10:50 -0500 commented question throttle in topic_tools can not give me the rate I want

I also issue this at Github https://github.com/ros/ros_comm/issue...

2015-01-27 21:30:59 -0500 commented answer Creating a throttle node

I have tried this but I can not get the rate I want. For example, my input_topic is 200Hz, but my input_topic_throttled is only 25Hz, even if I use 100 in the args.

2015-01-27 08:31:29 -0500 received badge  Popular Question (source)
2015-01-27 03:06:53 -0500 asked a question throttle in topic_tools can not give me the rate I want

Dear all,

I have a node publishing Odom messages at 200Hz and I don't want to change this.

One of my subscriber can not handle the messages so fast so I use throttle in topic_tools to throttle the publisher at 100Hz.

The strange thing is that I only get 25Hz Odom_throttle(checked with rostopic hz). So what's the problem?

I also noticed that if I defined my subscriber(listen to the 200Hz topic) like this

ros::Subscriber sub = nh.subscribe("odom", 1, odomCallback);

then I will also only get 25Hz result.

I have to define the subscriber as following to get 200Hz result:

ros::Subscriber sub = nh.subscribe("odom", 1, viconCallback, ros::TransportHints().tcpNoDelay());

Look forward to any help!

2015-01-27 02:16:06 -0500 commented answer A question about AsyncSpinner

Thank you! Then the question becomes, what would happens if I use 1? Does that mean the callback is still in the same thread as the main program? will the callback blocks the main loop?

2015-01-27 01:15:21 -0500 asked a question A question about AsyncSpinner

Dear all,

I would like to know what would happen withros::AsyncSpinner spinner(0);

Does that mean the callback is still in the same thread as the main program?

2015-01-24 10:17:06 -0500 asked a question Is there a good example on Multi-threaded spinner?

Dear all,

I would like to write a node using multi-threaded spinner. Since some of the callbacks access common class members so I guess I will need mutex locks to prevent conflicts. But I have never write similar things and I can not find a good example on it. Could anybody helps?

Best,

Ziyang

2015-01-24 09:55:17 -0500 received badge  Popular Question (source)
2015-01-24 07:51:26 -0500 commented answer Question about Multiple callbacks in spinOnce()

Dear @Stefan, you understand my question correctly. I am not sure if your suggestion will work, but I don't want to increase the queue_size because I only want to do control based on the latest messages. I am thinking assigning each subscriber its own message queue, do you think that is necessary?

2015-01-24 07:16:18 -0500 commented answer Multiple Subscribers in one Cpp file.

Hi @Jeremy, when subscribing to multiple topics and the queue size is just 1, what will happen in spinOnce? Will I randomly lose some messages?

2015-01-24 07:02:08 -0500 commented answer Using CallbackQueue

where is pthread used?

2015-01-24 06:42:39 -0500 asked a question Question about Multiple callbacks in spinOnce()

Dear all,

I have a node which subscribes to 3 different topics and let's call them

A: 80Hz B: 120Hz C: 50Hz

And I define the subscribers like this:

nh.subscribe("A/B/C", 1, A/B/C_callback, ros::TransportHints().tcpNoDelay());

in the main loop(which is 60Hz), I call spinOnce() and do some control task. But I have noticed that at some times I never enter B_callback. I can confirm that the publishers are all working, so why is this happening?

Best,

Ziyang