ROS Plugin compilation warning

Report crashes, strange behaviour, or apparent bugs
Post Reply
23pointsNorth
Posts: 9
Joined: 27 Nov 2015, 12:44

ROS Plugin compilation warning

Post by 23pointsNorth »

Hi,

In ./programming/ros_packages/vrep_plugin/src/vrepSubscriber.cpp (also in V3.3.0)
on line 493, there are some forgotten casts that generate some warning during compilation (testing with c++11). The correct line should be:

Code: Select all

simFloat command[6] = {(float)vel->linear.x,(float)vel->linear.y,(float)vel->linear.z,(float)vel->angular.x,(float)vel->angular.y,(float)vel->angular.z};
-Daniel

coppelia
Site Admin
Posts: 10336
Joined: 14 Dec 2012, 00:25

Re: ROS Plugin compilation warning

Post by coppelia »

Thanks Daniel.

In next release there will be a new ROS plugin that will calc almost 1:1 on the ROS C++ API.

Cheers

Post Reply