I want to send HTTP requests and I use a flask server and Unreal code to manipulate a real life NAO robot. I have errors in these lines of code and I cant seem to understand the exact problem.
Here is the code snippets that get the error:
UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class INTERNSHIPUNREAL_API URobotArmControllerComponent : public UActorComponent
{
GENERATED_BODY()
Here is the error>
Error (active) E0077 this declaration has no storage class or type specifier InternshipUnreal C:\Users\Simal\Documents\Unreal Projects\InternshipUnreal\Source\InternshipUnreal\Public\RobotArmController.h 17
void URobotArmControllerComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
// Call the MoveArm function with the new position
MoveArm(GetOwner()->GetActorLocation().Y);
}
Here is the error>
Severity Code Description Project File Line Suppression State Error (active) E0135 class "UObject" has no member "TickComponent" InternshipUnreal C:\Users\Simal\Documents\Unreal Projects\InternshipUnreal\Source\InternshipUnreal\Public\RobotArmController.cpp 14