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

junji's profile - activity

2016-05-06 09:08:03 -0500 received badge  Famous Question (source)
2016-05-06 09:08:03 -0500 received badge  Notable Question (source)
2016-03-30 21:57:15 -0500 received badge  Nice Question (source)
2015-02-19 14:08:59 -0500 received badge  Popular Question (source)
2015-01-25 11:40:32 -0500 received badge  Enthusiast
2015-01-24 00:47:54 -0500 received badge  Student (source)
2015-01-23 19:07:59 -0500 received badge  Editor (source)
2015-01-23 19:07:28 -0500 asked a question time_from_start of JointTrajectory on RosMatlab

Nice to meet you. I am Jun from Germany. I am using the RosMatlab I/O package released on january 2014. I am having problems when trying to publish a JointTrajectory from Matlab.

Because I can’t find the way how to set “time_from_start”, it happens a publish error on Matlab now. Could you teach me how to set the“time_from_start” on RosMatlab?

with the next code :


node = rosmatlab.node('PublishTrajectory', [], [], 'rosIP', '127.0.0.1'); publisher = rosmatlab.publisher('Traj', 'trajectory_msgs/JointTrajectory', node);

msg = rosmatlab.message('trajectory_msgs/JointTrajectory', node); po = rosmatlab.message('trajectory_msgs/JointTrajectoryPoint', node);

p1 = msg.getPoints(); po.setTimeFromStart(1); p1.add(po);

msg.setPoints(p1); publisher.publish(msg);


If I run the above code, the below message comes on Matlab and can’t publish.


No method 'setTimeFromStart' with matching signature found for class 'org.ros.internal.message.$Proxy27'.

Error in JointTraj (line 27) po.setTimeFromStart(1);


I would appreciate it very much if you could advise me anything.

Best regards,

Jun

2015-01-23 18:58:32 -0500 received badge  Notable Question (source)
2015-01-13 12:28:03 -0500 received badge  Popular Question (source)
2015-01-12 20:25:50 -0500 asked a question How to publish PoseArray on RosMatlab

Nice to meet you. I am Emily from Germany. I am using the RosMatlab I/O package released on january 2014. I am having problems when trying to publish a PoseArray from Matlab to Rviz. I can send the message from Matlab. But Rviz can’t display the PoseArray, because it doesn’t set the “frame_id” of header file. Unfortunately, I can’t fins the way how to set them on the below code. Could you teach me how to set the frame_id or header file on RosMatlab?


with the next code :

node = rosmatlab.node('PublishArray', [], [], 'rosIP', '127.0.0.1');

publisher = rosmatlab.publisher('TOPIC', 'geometry_msgs/PoseArray', node);

msg = rosmatlab.message('geometry_msgs/PoseArray', node);

po = rosmatlab.message('geometry_msgs/Pose', node);

p = msg.getPoses();

po.getPosition().setX(0); po.getPosition().setY(0); po.getPosition().setZ(0);

po.getOrientation().setX(0); po.getOrientation().setY(0); po.getOrientation().setZ(0); po.getOrientation().setW(0);

p.add(po);

msg.setPoses(p);

publisher.publish(msg);

If I run the above code, the below message comes on the rviz and can’t display the posearray..

“[ WARN] [1421107372.814210366]: Invalid argument passed to canTransform argument source_frame in tf2 frame_ids cannot be empty”

I would appreciate it very much if you could advise me anything.

Best regards, Emily