Ask Your Question

jbb's profile - activity

2018-08-02 09:31:13 -0500 received badge  Taxonomist
2017-03-09 04:21:10 -0500 received badge  Famous Question (source)
2017-02-17 09:46:25 -0500 received badge  Popular Question (source)
2017-02-17 09:46:25 -0500 received badge  Notable Question (source)
2016-07-20 06:14:28 -0500 answered a question running images in a loop using roslaunch


You could write a node that publishes your images one after the other and then launch that node from a launch file.

To do that you can probably follow this tutorial and modify it to loop through your images.

I haven't tested any of this but I guess you would have to change cv::Mat image = cv::imread(argv[1], CV_LOAD_IMAGE_COLOR); to something like :

cv::Mat image1 = cv::imread(path/to/image1, CV_LOAD_IMAGE_COLOR);

cv::Mat image2 = cv::imread(path/to/image2, CV_LOAD_IMAGE_COLOR);

cv::Mat image3 = cv::imread(path/to/image3, CV_LOAD_IMAGE_COLOR);

and then change msg at a regular time interval in the loop

2016-07-18 09:09:41 -0500 asked a question tf_prefix and tf2_web_republisher (URDF visualization in browser)

Hello everybody !

I have manage to display my custom urdf file in my browser by using this tutorial.

However, when I run what I've done alongside my actual robot (or simulation), the visualization does not display properly (several parts of the robot are displayed at the same point). I am guessing the problems comes from an interference between the tf tree of my robot and the tf tree of my visualization. (These two trees have some links in common but are different).

I tried adding a "tf_prefix" parameter to my robot_state_publisher by doing this

<node name="robot_state_publisher_web" pkg="robot_state_publisher" type="state_publisher">
         <rosparam param="tf_prefix">"visualisation"</rosparam>

But when I launch everything I get the following error :

[ERROR] [1468848677.857789028]: "Link1" passed to lookupTransform argument source_frame does not exist.

Where Link1 is a link listed in my URDF file.

Am I using the tf_prefix wrong? Did I not configure something? Should I load my URDF file in a special way ? I also read that tf_prefix doesn't work with all the packages. Is this the case with tf2_web_republisher?

2016-07-13 10:10:07 -0500 received badge  Supporter (source)