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

rxplot is not plotting as desired

asked 2011-12-14 01:25:09 -0500

alfa_80 gravatar image

I have been trying to use rxplot. I have a topic called pose3D_LD defined somewhere in my code and the related fields are as below:

        pose3D_LD.position.x = utmRight_x;
        pose3D_LD.position.y = utmHigh_y;
        pose3D_LD.position.z = data_set[t][5]; 

        pose3D_LD.orientation.x = q.x();
        pose3D_LD.orientation.y = q.y();
        pose3D_LD.orientation.z = q.z();
        pose3D_LD.orientation.w = q.w();

However, when I issue a command, say, rxplot /pose3D_LD/position.x, it returns an error saying that plotting topics /pose3D_LD/position.x Invalid topic spec [/pose3D_LD/position.x]: 'Pose' object has no attribute 'position.x'. Can someone check the command I call, whether it is valid or not? I guess, the topic and field is set correctly, but I'm not sure if the dot operator is allowed or not upon calling that command.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-12-14 01:39:59 -0500

alfa_80 gravatar image

updated 2011-12-14 01:44:45 -0500

Very sorry to answer this myself, I just found the hint here.

Dot operator is not allowed, instead, we need to use slash(/).

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-12-14 01:25:09 -0500

Seen: 278 times

Last updated: Dec 14 '11