Looks like there was a bug in the example. ros::Time() should have been ros::Time::now(). Depending on where you want to display the marker, and what setup you're using, the "/my_frame" frame id may need to be changed as well.<br>
<br>Josh<br><br><div class="gmail_quote">On Fri, May 14, 2010 at 7:30 AM, Nicolas <span dir="ltr"><<a href="mailto:nicolas@shadowrobot.com">nicolas@shadowrobot.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Josh and thank you for your answers.<br>
<br>
To display TEXT_VIEW_FACING markers, I thought that it would be a good<br>
idea to start with the "basic shapes" tutorial on the wiki, and then to<br>
adapt the C++ file to get "dynamic" text instead of shapes shifting<br>
every second. Unfortunately for me I was right :(<br>
<br>
I followed step by step the tutorial, creating my package, implementing<br>
basic_shapes.cpp, building and running the code. Everything went<br>
perfectly well, but my rviz does not display any shape. I checked with<br>
rxgraph that everything was connected and I echoed the<br>
visualization_marker node to check the informations that rviz receives.<br>
Here is an exemple of the echo result:<br>
<br>
header:<br>
seq: 176<br>
stamp: 0<br>
frame_id: /my_frame<br>
ns: basic_shapes<br>
id: 0<br>
type: 3<br>
action: 0<br>
pose:<br>
position:<br>
x: 0.0<br>
y: 0.0<br>
z: 0.0<br>
orientation:<br>
x: 0.0<br>
y: 0.0<br>
z: 0.0<br>
w: 1.0<br>
scale:<br>
x: 1.0<br>
y: 1.0<br>
z: 1.0<br>
color:<br>
r: 0.5<br>
g: 0.5<br>
b: 0.5<br>
a: 0.5<br>
lifetime: 0<br>
points: []<br>
<br>
<br>
Is everything OK ? I cannot figure what the error is, and my rviz still<br>
doesn't display any shape.<br>
<br>
TIA,<br>
<br>
Nicolas<br>
<br>
Le jeudi 13 mai 2010 à 10:35 -0700, Josh Faust a écrit :<br>
<div><div></div><div class="h5">> Hi Nicolas,<br>
><br>
> rviz 1.1 includes a TEXT_VIEW_FACING marker, as well as an option to<br>
> keep a marker relative to a frame (frame_locked).<br>
><br>
> Do you mean dynamically change the color of one of the robot model<br>
> links? No, there is currently no way of doing that. Another option<br>
> is that 1.1 also contains a MESH_RESOURCE marker, so you could create<br>
> a mesh of the same type as that link, make it slightly larger and<br>
> possibly transparent, and set its color.<br>
><br>
> Josh<br>
><br>
> On Thu, May 13, 2010 at 8:25 AM, Nicolas <<a href="mailto:nicolas@shadowrobot.com">nicolas@shadowrobot.com</a>><br>
> wrote:<br>
> Hello ROS community,<br>
><br>
> I am currently trying to display through rviz some<br>
> informations about my<br>
> robot model (a too high temperature for instance), and I don't<br>
> really<br>
> find a good way to do it. Is there a possibility to display<br>
> informations<br>
> as a floating text next to the <link> the informations are<br>
> about ? Or a<br>
> way to dynamically change the color of a texture ? And if it<br>
> is not<br>
> possible yet, is it planned to be possible in a future<br>
> release ?<br>
><br>
> Thanks in advance,<br>
><br>
> Nicolas<br>
><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br>
<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br>