I don't think I was clear that this is new in visualization_common and visualization 1.1, the current unstable development releases. <br><br>Josh<br><br><div class="gmail_quote">On Mon, May 17, 2010 at 9:28 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;">Thank you for your help, my program is now running for the basic shapes<br>
(Arrow, Cube, Sphere, Cylinder, as in the tutorial), but troubles come<br>
when I want to use the TEXT_VIEW_FACING marker.<br>
<br>
in my basic_shapes.cpp file, I replaced uint32_t shape =<br>
visualization_msgs::Marker::CUBE by uint32_t shape =<br>
visualization_msgs::Marker::TEXT_VIEW_FACING, and with the other<br>
settings I added a line: marker.text="blablabla"; just to see the<br>
result.<br>
<br>
During the compilation, I get that kind of error:<br>
<br>
/.../using_markers/src/basic_shapes.cpp: In function ‘int main(int,<br>
char**)’:<br>
/.../using_markers/src/using_markers/src/basic_shapes.cpp:12: error:<br>
‘TEXT_VIEW_FACING’ is not a member of ‘visualization_msgs::Marker<br>
/.../using_markers/src/basic_shapes.cpp:40: error: ‘class<br>
visualization_msgs::Marker’ has no member named ‘text’<br>
<br>
It seems like the TEXT_VIEW_FACING is not recognized. Is it normal ? Did<br>
I do something wrong ? Is there something to add ? Or is it just a bug ?<br>
<br>
TIA,<br>
<br>
Nicolas<br>
<br>
<br>
Le vendredi 14 mai 2010 à 10:01 -0700, Josh Faust a écrit :<br>
<div><div></div><div class="h5">> Looks like there was a bug in the example. ros::Time() should have<br>
> been ros::Time::now(). Depending on where you want to display the<br>
> marker, and what setup you're using, the "/my_frame" frame id may need<br>
> to be changed as well.<br>
><br>
> Josh<br>
><br>
> On Fri, May 14, 2010 at 7:30 AM, Nicolas <<a href="mailto:nicolas@shadowrobot.com">nicolas@shadowrobot.com</a>><br>
> wrote:<br>
> Hi Josh and thank you for your answers.<br>
><br>
> To display TEXT_VIEW_FACING markers, I thought that it would<br>
> be a good<br>
> idea to start with the "basic shapes" tutorial on the wiki,<br>
> and then to<br>
> adapt the C++ file to get "dynamic" text instead of shapes<br>
> shifting<br>
> every second. Unfortunately for me I was right :(<br>
><br>
> I followed step by step the tutorial, creating my package,<br>
> implementing<br>
> basic_shapes.cpp, building and running the code. Everything<br>
> went<br>
> perfectly well, but my rviz does not display any shape. I<br>
> checked with<br>
> rxgraph that everything was connected and I echoed the<br>
> visualization_marker node to check the informations that rviz<br>
> 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<br>
> 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>
><br>
> > Hi Nicolas,<br>
> ><br>
> > rviz 1.1 includes a TEXT_VIEW_FACING marker, as well as an<br>
> 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<br>
> model<br>
> > links? No, there is currently no way of doing that.<br>
> Another option<br>
> > is that 1.1 also contains a MESH_RESOURCE marker, so you<br>
> could create<br>
> > a mesh of the same type as that link, make it slightly<br>
> larger and<br>
> > possibly transparent, and set its color.<br>
> ><br>
> > Josh<br>
> ><br>
> > On Thu, May 13, 2010 at 8:25 AM, Nicolas<br>
> <<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),<br>
> and I don't<br>
> > really<br>
> > find a good way to do it. Is there a possibility to<br>
> display<br>
> > informations<br>
> > as a floating text next to the <link> the<br>
> informations are<br>
> > about ? Or a<br>
> > way to dynamically change the color of a texture ?<br>
> And if it<br>
> > is not<br>
> > possible yet, is it planned to be possible in a<br>
> 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>
><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>