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

RaphaelHoefer's profile - activity

2022-06-07 04:02:21 -0500 received badge  Famous Question (source)
2021-08-02 05:56:41 -0500 received badge  Famous Question (source)
2021-07-06 02:07:20 -0500 received badge  Notable Question (source)
2021-05-22 02:29:11 -0500 received badge  Notable Question (source)
2021-05-21 10:03:49 -0500 received badge  Popular Question (source)
2021-05-20 15:31:06 -0500 received badge  Popular Question (source)
2021-05-20 13:45:30 -0500 commented question Assign values to arrow marker starting position

Sorry, I forgot the part in my question, i edited it accordingly. I am using the resize(...).

2021-05-20 13:43:54 -0500 edited question Assign values to arrow marker starting position

Assign values to arrow marker starting position Hello, I am trying to publish an arrow marker and want to display this

2021-05-20 13:29:06 -0500 commented question Assign values to arrow marker starting position

Not exactly, now I am trying so assgin values from a message to the sarting arrow marker, if I am assigning specific val

2021-05-20 12:17:06 -0500 asked a question Assign values to arrow marker starting position

Assign values to arrow marker starting position Hello, I am trying to publish an arrow marker and want to display this

2021-05-20 11:53:01 -0500 marked best answer Publishing Marker arrow causes Segmentation fault (core dumped)

Hello,

I am trying to publish a marker arrow and want to visualize it in rviz with a start and an end point.

When I am using the points member as described here http://wiki.ros.org/rviz/DisplayTypes... and try to run it I am getting the following error: Segmentation fault (core dumped).

When I am just using the pose.position and pose.orientatien without the points member the arrow is appearing.

    visualization_msgs::Marker markers_msg;
    markers_msg.header.frame_id = "world";
    markers_msg.header.stamp = ros::Time::now();
    markers_msg.ns = "drop";
    markers_msg.id = 0;
    markers_msg.type = visualization_msgs::Marker::ARROW;
    markers_msg.action = visualization_msgs::Marker::ADD;
    markers_msg.pose.position.x = 1;
    markers_msg.pose.position.y = 1;
    markers_msg.pose.position.z = 1;
    markers_msg.pose.orientation.x = 0.0;
    markers_msg.pose.orientation.y = 0.0;
    markers_msg.pose.orientation.z = 0.0;
    markers_msg.pose.orientation.w = 1.0;
    markers_msg.lifetime = ros::Duration(0);
    markers_msg.scale.x = 1;
    markers_msg.scale.y = 0.1;
    markers_msg.scale.z = 0.1;
    markers_msg.color.a = 1.0; // Don't forget to set the alpha!
    markers_msg.color.r = 1.0;
    markers_msg.color.g = 0.0;
    markers_msg.color.b = 0.0;
    markers_msg.points[0].x = 0.0f;
    markers_msg.points[0].y = 0.0f;
    markers_msg.points[0].z = 0.0f;
    markers_msg.points[1].x = 1.0f;
    markers_msg.points[1].y = 1.0f;
    markers_msg.points[1].z = 1.0f;

I hope anyone can help me. Thank you very much in advance!

Kind regards,

Raphael

2021-05-20 11:53:01 -0500 received badge  Scholar (source)
2021-05-19 11:58:29 -0500 commented answer Publishing Marker arrow causes Segmentation fault (core dumped)

Thank you very much! This solved the problem.

2021-05-19 11:58:02 -0500 received badge  Supporter (source)
2021-05-19 11:44:09 -0500 asked a question Publishing Marker arrow causes Segmentation fault (core dumped)

Publishing Marker arrow causes Segmentation fault (core dumped) Hello, I am trying to publish a marker arrow and want t