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

TheElk's profile - activity

2017-04-11 10:46:16 -0500 received badge  Taxonomist
2016-04-18 13:14:16 -0500 received badge  Famous Question (source)
2015-04-29 01:39:12 -0500 received badge  Good Question (source)
2015-02-11 15:10:03 -0500 received badge  Nice Question (source)
2014-12-06 08:33:53 -0500 received badge  Famous Question (source)
2014-09-19 07:24:13 -0500 received badge  Notable Question (source)
2014-09-16 03:03:55 -0500 commented question Possible limitation of Points in Marker::LINE_STRIP and Rviz

So i looked through all files from RVIZ and OGRE and the only occurence of the string "8192" that makes sense is the "#define THREADCACHEMAX 8192" from nedmalloc/nedmalloc.c from OGRE. Maybe this ist he point but I dont know exactly

2014-09-16 01:39:25 -0500 received badge  Enthusiast
2014-09-15 16:28:27 -0500 received badge  Notable Question (source)
2014-09-15 08:23:14 -0500 commented question Possible limitation of Points in Marker::LINE_STRIP and Rviz

The number of Elements of a BillboardChain (obviously the datatype responsible for storing Marker in RVIZ; from Ogre) has a limit named mChainCount which can be set in its constructor. Maybe RVIZ sets this value to 8192. I'll investigate a little further, maybe i find a proper answer.

2014-09-10 20:09:53 -0500 received badge  Student (source)
2014-09-10 20:09:51 -0500 received badge  Popular Question (source)
2014-09-10 01:22:24 -0500 commented question Possible limitation of Points in Marker::LINE_STRIP and Rviz

I dont think that this is the problem, as it runs fiene for the first approx. 8200 Points. Shouldnt it then crash at 100 Points?

2014-09-09 08:11:09 -0500 asked a question Possible limitation of Points in Marker::LINE_STRIP and Rviz

Hi

im facing an error whenever I try to visualize a Marker::LINE_STRIP with more than (approx) 8200 Points in it. The code seems to run fine but RVIZ crashes with an chainIndex out of bounds Exception. The Exact output ist:

[ WARN] [1410267962.066933906]: OGRE EXCEPTION(5:ItemIdentityException): chainIndex out of bounds in BillboardChain::addChainElement at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreBillboardChain.cpp (line 243)
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Ogre::ItemIdentityException'
  what():  OGRE EXCEPTION(5:ItemIdentityException): chainIndex out of bounds in BillboardChain::addChainElement at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreBillboardChain.cpp (line 243)
Aborted (core dumped)

Is there a Limit of points I am able to vizualize using one single Marker?

Thanks in Advance

2014-08-27 02:05:14 -0500 received badge  Popular Question (source)
2014-08-26 10:00:56 -0500 marked best answer StaticTransformBroadcaster does not broadcast

Hey, I tried to implement a simple StaticTransformBroadcaster with the following code:

#include <ros/ros.h>

#include <tf2_ros/static_transform_broadcaster.h>
#include <tf2/transform_datatypes.h>

#include <geometry_msgs/TransformStamped.h>
#include <geometry_msgs/Transform.h>

void publishStaticTransformation();
int main (int argc, char** argv)
{
    ros::init(argc, argv, "StaticBroadcaster");

    ROS_INFO("StaticBroadcaster started");
    publishStaticTransformation();
    ros::spin();
}

void publishStaticTransformation()
{
    tf2_ros::StaticTransformBroadcaster staticBroadcaster2;

    geometry_msgs::TransformStamped msg;
    msg.header.stamp = ros::Time::now();

    msg.header.frame_id = "base_link";
    msg.child_frame_id = "child_2";

    msg.transform.rotation.x = 2.0;
    msg.transform.rotation.y = 2.0;
    msg.transform.rotation.z = 0.0;
    msg.transform.rotation.w = 1.0;

    msg.transform.translation.x = 0;
    msg.transform.translation.y = 0;
    msg.transform.translation.z = 0;

    staticBroadcaster2.sendTransform(msg);
    ROS_INFO_STREAM("published");
}

This doesn't work but i don't know why. "published" is printed on the Console but rqt_graph shows no connection between my broadcaster and the tf_static topic. However, wehn I Create the StaticTransformBroadcaster first and pass it as an argument to my publishStaticTransformation-method it works.

#include <ros/ros.h>

#include <tf2_ros/static_transform_broadcaster.h>
#include <tf2/transform_datatypes.h>

#include <geometry_msgs/TransformStamped.h>
#include <geometry_msgs/Transform.h>

void publishStaticTransformation(tf2_ros::StaticTransformBroadcaster &staticBroadcaster);

int main (int argc, char** argv)
{
    ros::init(argc, argv, "StaticBroadcaster");

    ROS_INFO("StaticBroadcaster started");
    tf2_ros::StaticTransformBroadcaster staticBroadcaster;
    publishStaticTransformation(staticBroadcaster);
    ros::spin();
}

void publishStaticTransformation(tf2_ros::StaticTransformBroadcaster &staticBroadcaster)
{
    geometry_msgs::TransformStamped msg;

    msg.header.stamp = ros::Time::now();

    msg.header.frame_id = "base_link";
    msg.child_frame_id = "child_2";

    msg.transform.rotation.x = 2.0;
    msg.transform.rotation.y = 2.0;
    msg.transform.rotation.z = 0.0;
    msg.transform.rotation.w = 1.0;

    msg.transform.translation.x = 0;
    msg.transform.translation.y = 0;
    msg.transform.translation.z = 0;

    staticBroadcaster.sendTransform(msg);
}

Does anyone know, what I'm doing wrong?
Any help is appreciated

2014-08-26 09:43:18 -0500 received badge  Scholar (source)
2014-08-26 09:43:09 -0500 received badge  Supporter (source)
2014-08-26 09:43:07 -0500 commented answer StaticTransformBroadcaster does not broadcast

Tank you very much for your answer !